apic: Cleanup for QOM'ification
Do some cleanup, including:1. Remove DO_UPCAST() for APICCommonState2. Change DeviceState pointers from 'd' to 'dev', better to understand3. Rename 'register_types' to specifically 'apic_common_register_types'
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>...
apic: QOM'ify APIC
Convert 'init' function to QOM's 'realize' for apic, kvm/apic andxen/xen_apic.
Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
ioapic: Cleanup for QOM'ification
ioapic: QOM'ify ioapic
Convert 'init' function to QOM's 'realize' for ioapic and kvm-ioapic.Change variable 'ioapic_no' from static to global. Then we can dropthe 'instance_no' function argument.
qdev: Replace no_user by cannot_instantiate_with_device_add_yet
In an ideal world, machines can be built by wiring devices togetherwith configuration, not code. Unfortunately, that's not the world welive in right now. We still have quite a few devices that need to be...
sysbus: Set cannot_instantiate_with_device_add_yet
device_add plugs devices into suitable bus. For "real" buses, thatactually connects the device. For sysbus, the connections need to bemade separately, and device_add can't do that. The device would be...
Merge remote-tracking branch 'qemu-kvm/uq/master' into staging
pci-assign: Fix error_report of pci-stub message
Using multiple calls to error_report here means every line isprefaced with the (potentially long) pci-assign command linearguments.
Use a single error_printf to preserve the intended formatting.Since this code path is always preceded by an error_report call,...
pci-assign: Remove dead code for direct I/O region access from userspace
This feature was already deprecated back then in qemu-kvm, ie. beforepci-assign went upstream. assigned_dev_ioport_rw will never be invokedwith resource_fd < 0.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>...
kvm: Fix compiler warning (clang)
Report from clang analyzer:
clock.c:42:15: warning:Value stored to 'cpu' during its initialization is never read
Signed-off-by: Stefan Weil <sw@weilnetz.de>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
View revisions
Also available in: Atom