bootindex: add a setter/getter functions wrapper for bootindex property
commit12da30977813472b91f0ba1a69f9258bbe679b2e
authorGonglei <arei.gonglei@huawei.com>
Tue, 7 Oct 2014 08:00:11 +0000 (7 16:00 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Oct 2014 07:52:47 +0000 (15 09:52 +0200)
tree4be26e8aad5cd7ab68cd473d68831f91ed29db1c
parenta598f2ffc2df59afcea5454fb353b849911da90b
bootindex: add a setter/getter functions wrapper for bootindex property

when we remove bootindex form qdev.property to qom.property,
we can use those functions set/get bootindex property for all
correlative devices. Meanwhile set the initial value of
bootindex to -1.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
bootdevice.c
include/sysemu/sysemu.h