John Snow 01ce352e62 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>
2014-09-08 11:12:44 +01:00
..
2014-08-29 15:00:29 +01:00
2014-08-15 19:12:48 +04:00
2013-12-24 18:02:18 +01:00
2014-09-04 08:23:14 +02:00
2014-09-02 22:38:16 +04:00
2014-09-04 13:33:53 +01:00
2014-09-08 11:12:44 +01:00
2014-09-02 22:38:16 +04:00
2014-09-02 22:38:16 +04:00
2014-09-02 22:38:16 +04:00
2014-08-14 13:22:00 +02:00
2014-09-04 17:39:07 +01:00
2014-06-27 13:48:22 +02:00
2014-06-30 21:13:30 +02:00
2014-09-02 16:07:31 +01:00
2014-09-01 09:25:32 +02:00
2014-09-04 12:20:41 +01:00
2014-06-30 21:13:30 +02:00
2014-09-02 22:38:16 +04:00
2014-08-25 00:16:06 +02:00
2014-08-29 12:52:14 +02:00
2014-09-04 17:39:07 +01:00
2014-08-18 12:06:21 +02:00