diff options
| author | Gonglei | 2014-10-07 10:00:36 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2014-10-15 10:46:01 +0200 |
| commit | d749e10c4f97a0239180215c6d7d18712361a430 (patch) | |
| tree | 9772a48a6a203f4e21ab1ad2166f6473bfd053d1 /bootdevice.c | |
| parent | ide: add calling add_boot_device_patch in bootindex setter function (diff) | |
| download | qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.gz qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.xz qemu-d749e10c4f97a0239180215c6d7d18712361a430.zip | |
bootindex: move calling add_boot_device_patch to bootindex setter function
On this way, we can assure the new bootindex take effect
during vm rebooting.
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')
| -rw-r--r-- | bootdevice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootdevice.c b/bootdevice.c index 69cffd8021..79c2327142 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -212,6 +212,8 @@ static void device_set_bootindex(Object *obj, Visitor *v, void *opaque, /* change bootindex to a new one */ *prop->bootindex = boot_index; + add_boot_device_path(*prop->bootindex, prop->dev, prop->suffix); + out: if (local_err) { error_propagate(errp, local_err); |
