diff options
author | John Snow <jsnow@redhat.com> | 2014-09-04 23:42:17 -0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-09-08 11:12:44 +0100 |
commit | 01ce352e62c3f86df6f4ad32c3ab9353e55af799 (patch) | |
tree | cd90e523bbf1b752826bec98a927c95f6e6157cc /migration-exec.c | |
parent | 4bf6637d35723f92e03f427c78d7ad130be41e6f (diff) |
ide: Add resize callback to ide/core
Currently, if the block device backing the IDE drive is resized,
the information about the device as cached inside of the IDEState
structure is not updated, thus when a guest OS re-queries the drive,
it is unable to see the expanded size.
This patch adds a resize callback that updates the IDENTIFY data
buffer in order to correct this.
Lastly, a Linux guest as-is cannot resize a libata drive while in-use,
but it can see the expanded size as part of a bus rescan event.
This patch also allows guests such as Linux to see the new drive size
after a soft reboot event, without having to exit the QEMU process.
Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'migration-exec.c')
0 files changed, 0 insertions, 0 deletions