summaryrefslogtreecommitdiff
path: root/bootdevice.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-10-07 16:00:35 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-10-15 10:45:51 +0200
commitd2b186f96d19c1f8a6b7e528ff32c24096d5b204 (patch)
tree374ba75e25297bf22c16921a8b0b40d12fd1ce6b /bootdevice.c
parent33739c712982929a7763f0ae42a0a9c3b3f21796 (diff)
downloadqemu-d2b186f96d19c1f8a6b7e528ff32c24096d5b204.tar.gz
ide: add calling add_boot_device_patch in bootindex setter function
On this way, we can assure the new bootindex take effect during vm rebooting. Meanwhile set the initial value of bootindex to -1. Because ide devcies's unit property maybe do not initialize when set_bootindex function is called, so that we don't know its suffix. So we have to save the call add_boot_device_path() on ide realize/init function. When we want to change bootindex during vm rebooting, we can call it in setter function. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'bootdevice.c')
0 files changed, 0 insertions, 0 deletions