mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
* Register qdev properties as class properties (Marc-André)
* Cleanups (Philippe) * virtio-scsi fix (Pan Nengyuan) * Tweak Skylake-v3 model id (Kashyap) * x86 UCODE_REV support and nested live migration fix (myself) * Advisory mode for pvpanic (Zhenwei) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJeK1CXAAoJEL/70l94x66DXtkIAI6W5wEY0Yme4M9Q5mGc0RV8 uscPLg0wsg88u6xne8ucCiGymvDREym2ii/aVI0Hi5ish84ZMdCrdck9cd+llpMf +a3slL26AKlOW8WtYSuyAE1RdLFXngeXdwal5KtWPEExJorkDUPTbwhBzQduQK1a myoHHcbwdd/96v7FvKnfG8jM6KZtHPQQ0i6+6fX4PN44jaULQNjze8GIrRBEwqw5 uCKJFQPBXiVcxKjH5/kzI1vl2hLJbF2ZGVEzX/U8OPZwyGPHIkWquURo8lvUTPfb ySlNTUTV2CyrN65TBRXQp/mJi44WvME5Jxlf5rNLBaYXPpL0zhmILKn5X5ya4U0= =TD0Y -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging * Register qdev properties as class properties (Marc-André) * Cleanups (Philippe) * virtio-scsi fix (Pan Nengyuan) * Tweak Skylake-v3 model id (Kashyap) * x86 UCODE_REV support and nested live migration fix (myself) * Advisory mode for pvpanic (Zhenwei) # gpg: Signature made Fri 24 Jan 2020 20:16:23 GMT # gpg: using RSA key BFFBD25F78C7AE83 # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full] # gpg: aka "Paolo Bonzini <pbonzini@redhat.com>" [full] # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini/tags/for-upstream: (58 commits) build-sys: clean up flags included in the linker command line target/i386: Add the 'model-id' for Skylake -v3 CPU models qdev: use object_property_help() qapi/qmp: add ObjectPropertyInfo.default-value qom: introduce object_property_help() qom: simplify qmp_device_list_properties() vl: print default value in object help qdev: register properties as class properties qdev: move instance properties to class properties qdev: rename DeviceClass.props qdev: set properties with device_class_set_props() object: return self in object_ref() object: release all props object: add object_class_property_add_link() object: express const link with link property object: add direct link flag object: rename link "child" to "target" object: check strong flag with & object: do not free class properties object: add object_property_set_default ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
760df0d121
448 changed files with 1255 additions and 940 deletions
|
@ -299,7 +299,7 @@ static void bcm2835_aux_class_init(ObjectClass *oc, void *data)
|
|||
dc->realize = bcm2835_aux_realize;
|
||||
dc->vmsd = &vmstate_bcm2835_aux;
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
dc->props = bcm2835_aux_props;
|
||||
device_class_set_props(dc, bcm2835_aux_props);
|
||||
}
|
||||
|
||||
static const TypeInfo bcm2835_aux_info = {
|
||||
|
|
|
@ -550,7 +550,7 @@ static void cadence_uart_class_init(ObjectClass *klass, void *data)
|
|||
dc->realize = cadence_uart_realize;
|
||||
dc->vmsd = &vmstate_cadence_uart;
|
||||
dc->reset = cadence_uart_reset;
|
||||
dc->props = cadence_uart_properties;
|
||||
device_class_set_props(dc, cadence_uart_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo cadence_uart_info = {
|
||||
|
|
|
@ -389,7 +389,7 @@ static void cmsdk_apb_uart_class_init(ObjectClass *klass, void *data)
|
|||
dc->realize = cmsdk_apb_uart_realize;
|
||||
dc->vmsd = &cmsdk_apb_uart_vmstate;
|
||||
dc->reset = cmsdk_apb_uart_reset;
|
||||
dc->props = cmsdk_apb_uart_properties;
|
||||
device_class_set_props(dc, cmsdk_apb_uart_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo cmsdk_apb_uart_info = {
|
||||
|
|
|
@ -125,7 +125,7 @@ static void debugcon_isa_class_initfn(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
dc->realize = debugcon_isa_realizefn;
|
||||
dc->props = debugcon_isa_properties;
|
||||
device_class_set_props(dc, debugcon_isa_properties);
|
||||
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ static void digic_uart_class_init(ObjectClass *klass, void *data)
|
|||
dc->realize = digic_uart_realize;
|
||||
dc->reset = digic_uart_reset;
|
||||
dc->vmsd = &vmstate_digic_uart;
|
||||
dc->props = digic_uart_properties;
|
||||
device_class_set_props(dc, digic_uart_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo digic_uart_info = {
|
||||
|
|
|
@ -865,7 +865,7 @@ static void escc_class_init(ObjectClass *klass, void *data)
|
|||
dc->reset = escc_reset;
|
||||
dc->realize = escc_realize;
|
||||
dc->vmsd = &vmstate_escc;
|
||||
dc->props = escc_properties;
|
||||
device_class_set_props(dc, escc_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -244,7 +244,7 @@ static void etraxfs_ser_class_init(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
dc->reset = etraxfs_ser_reset;
|
||||
dc->props = etraxfs_ser_properties;
|
||||
device_class_set_props(dc, etraxfs_ser_properties);
|
||||
dc->realize = etraxfs_ser_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -710,7 +710,7 @@ static void exynos4210_uart_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->realize = exynos4210_uart_realize;
|
||||
dc->reset = exynos4210_uart_reset;
|
||||
dc->props = exynos4210_uart_properties;
|
||||
device_class_set_props(dc, exynos4210_uart_properties);
|
||||
dc->vmsd = &vmstate_exynos4210_uart;
|
||||
}
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ static void grlib_apbuart_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->realize = grlib_apbuart_realize;
|
||||
dc->reset = grlib_apbuart_reset;
|
||||
dc->props = grlib_apbuart_properties;
|
||||
device_class_set_props(dc, grlib_apbuart_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo grlib_apbuart_info = {
|
||||
|
|
|
@ -372,7 +372,7 @@ static void imx_serial_class_init(ObjectClass *klass, void *data)
|
|||
dc->reset = imx_serial_reset_at_boot;
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
dc->desc = "i.MX series UART";
|
||||
dc->props = imx_serial_properties;
|
||||
device_class_set_props(dc, imx_serial_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo imx_serial_info = {
|
||||
|
|
|
@ -588,7 +588,7 @@ static void ipoctal_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
dc->desc = "GE IP-Octal 232 8-channel RS-232 IndustryPack";
|
||||
dc->props = ipoctal_properties;
|
||||
device_class_set_props(dc, ipoctal_properties);
|
||||
dc->vmsd = &vmstate_ipoctal;
|
||||
}
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ static void lm32_juart_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->reset = juart_reset;
|
||||
dc->vmsd = &vmstate_lm32_juart;
|
||||
dc->props = lm32_juart_properties;
|
||||
device_class_set_props(dc, lm32_juart_properties);
|
||||
dc->realize = lm32_juart_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ static void lm32_uart_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->reset = uart_reset;
|
||||
dc->vmsd = &vmstate_lm32_uart;
|
||||
dc->props = lm32_uart_properties;
|
||||
device_class_set_props(dc, lm32_uart_properties);
|
||||
dc->realize = lm32_uart_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -320,7 +320,7 @@ static void mcf_uart_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
dc->realize = mcf_uart_realize;
|
||||
dc->reset = mcf_uart_reset;
|
||||
dc->props = mcf_uart_properties;
|
||||
device_class_set_props(dc, mcf_uart_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -239,7 +239,7 @@ static void milkymist_uart_class_init(ObjectClass *klass, void *data)
|
|||
dc->realize = milkymist_uart_realize;
|
||||
dc->reset = milkymist_uart_reset;
|
||||
dc->vmsd = &vmstate_milkymist_uart;
|
||||
dc->props = milkymist_uart_properties;
|
||||
device_class_set_props(dc, milkymist_uart_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo milkymist_uart_info = {
|
||||
|
|
|
@ -314,7 +314,7 @@ static void nrf51_uart_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->reset = nrf51_uart_reset;
|
||||
dc->realize = nrf51_uart_realize;
|
||||
dc->props = nrf51_uart_properties;
|
||||
device_class_set_props(dc, nrf51_uart_properties);
|
||||
dc->vmsd = &nrf51_uart_vmstate;
|
||||
}
|
||||
|
||||
|
|
|
@ -627,7 +627,7 @@ static void parallel_isa_class_initfn(ObjectClass *klass, void *data)
|
|||
|
||||
dc->realize = parallel_isa_realizefn;
|
||||
dc->vmsd = &vmstate_parallel_isa;
|
||||
dc->props = parallel_isa_properties;
|
||||
device_class_set_props(dc, parallel_isa_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ static void pl011_class_init(ObjectClass *oc, void *data)
|
|||
|
||||
dc->realize = pl011_realize;
|
||||
dc->vmsd = &vmstate_pl011;
|
||||
dc->props = pl011_properties;
|
||||
device_class_set_props(dc, pl011_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo pl011_arm_info = {
|
||||
|
|
|
@ -342,7 +342,7 @@ static void console_class_init(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
SCLPEventClass *ec = SCLP_EVENT_CLASS(klass);
|
||||
|
||||
dc->props = console_properties;
|
||||
device_class_set_props(dc, console_properties);
|
||||
dc->reset = console_reset;
|
||||
dc->vmsd = &vmstate_sclplmconsole;
|
||||
ec->init = console_init;
|
||||
|
|
|
@ -258,7 +258,7 @@ static void console_class_init(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
SCLPEventClass *ec = SCLP_EVENT_CLASS(klass);
|
||||
|
||||
dc->props = console_properties;
|
||||
device_class_set_props(dc, console_properties);
|
||||
dc->reset = console_reset;
|
||||
dc->vmsd = &vmstate_sclpconsole;
|
||||
ec->init = console_init;
|
||||
|
|
|
@ -106,7 +106,7 @@ static void serial_isa_class_initfn(ObjectClass *klass, void *data)
|
|||
|
||||
dc->realize = serial_isa_realizefn;
|
||||
dc->vmsd = &vmstate_isa_serial;
|
||||
dc->props = serial_isa_properties;
|
||||
device_class_set_props(dc, serial_isa_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|||
pc->revision = 1;
|
||||
pc->class_id = PCI_CLASS_COMMUNICATION_SERIAL;
|
||||
dc->vmsd = &vmstate_pci_multi_serial;
|
||||
dc->props = multi_2x_serial_pci_properties;
|
||||
device_class_set_props(dc, multi_2x_serial_pci_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|||
pc->revision = 1;
|
||||
pc->class_id = PCI_CLASS_COMMUNICATION_SERIAL;
|
||||
dc->vmsd = &vmstate_pci_multi_serial;
|
||||
dc->props = multi_4x_serial_pci_properties;
|
||||
device_class_set_props(dc, multi_4x_serial_pci_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ static void serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|||
pc->revision = 1;
|
||||
pc->class_id = PCI_CLASS_COMMUNICATION_SERIAL;
|
||||
dc->vmsd = &vmstate_pci_serial;
|
||||
dc->props = serial_pci_properties;
|
||||
device_class_set_props(dc, serial_pci_properties);
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
}
|
||||
|
||||
|
|
|
@ -1044,7 +1044,7 @@ static void serial_class_init(ObjectClass *klass, void* data)
|
|||
dc->realize = serial_realize;
|
||||
dc->unrealize = serial_unrealize;
|
||||
dc->vmsd = &vmstate_serial;
|
||||
dc->props = serial_properties;
|
||||
device_class_set_props(dc, serial_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo serial_info = {
|
||||
|
@ -1159,7 +1159,7 @@ static void serial_mm_class_init(ObjectClass *oc, void *data)
|
|||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(oc);
|
||||
|
||||
dc->props = serial_mm_properties;
|
||||
device_class_set_props(dc, serial_mm_properties);
|
||||
dc->realize = serial_mm_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ static void spapr_vty_class_init(ObjectClass *klass, void *data)
|
|||
k->dt_type = "serial";
|
||||
k->dt_compatible = "hvterm1";
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
dc->props = spapr_vty_properties;
|
||||
device_class_set_props(dc, spapr_vty_properties);
|
||||
dc->vmsd = &vmstate_spapr_vty;
|
||||
}
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ static void stm32f2xx_usart_class_init(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
|
||||
dc->reset = stm32f2xx_usart_reset;
|
||||
dc->props = stm32f2xx_usart_properties;
|
||||
device_class_set_props(dc, stm32f2xx_usart_properties);
|
||||
dc->realize = stm32f2xx_usart_realize;
|
||||
}
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ static void terminal_class_init(ObjectClass *klass, void *data)
|
|||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
EmulatedCcw3270Class *ck = EMULATED_CCW_3270_CLASS(klass);
|
||||
|
||||
dc->props = terminal_properties;
|
||||
device_class_set_props(dc, terminal_properties);
|
||||
dc->vmsd = &terminal3270_vmstate;
|
||||
ck->init = terminal_init;
|
||||
ck->read_payload_3270 = read_payload_3270;
|
||||
|
|
|
@ -287,7 +287,7 @@ static void virtserialport_class_init(ObjectClass *klass, void *data)
|
|||
k->set_guest_connected = set_guest_connected;
|
||||
k->enable_backend = virtconsole_enable_backend;
|
||||
k->guest_writable = guest_writable;
|
||||
dc->props = virtserialport_properties;
|
||||
device_class_set_props(dc, virtserialport_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo virtserialport_info = {
|
||||
|
|
|
@ -1110,7 +1110,7 @@ static void virtio_serial_port_class_init(ObjectClass *klass, void *data)
|
|||
k->bus_type = TYPE_VIRTIO_SERIAL_BUS;
|
||||
k->realize = virtser_port_device_realize;
|
||||
k->unrealize = virtser_port_device_unrealize;
|
||||
k->props = virtser_props;
|
||||
device_class_set_props(k, virtser_props);
|
||||
}
|
||||
|
||||
static const TypeInfo virtio_serial_port_type_info = {
|
||||
|
@ -1179,7 +1179,7 @@ static void virtio_serial_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
QLIST_INIT(&vserdevices.devices);
|
||||
|
||||
dc->props = virtio_serial_properties;
|
||||
device_class_set_props(dc, virtio_serial_properties);
|
||||
dc->vmsd = &vmstate_virtio_console;
|
||||
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
||||
vdc->realize = virtio_serial_device_realize;
|
||||
|
|
|
@ -236,7 +236,7 @@ static void xilinx_uartlite_class_init(ObjectClass *klass, void *data)
|
|||
|
||||
dc->reset = xilinx_uartlite_reset;
|
||||
dc->realize = xilinx_uartlite_realize;
|
||||
dc->props = xilinx_uartlite_properties;
|
||||
device_class_set_props(dc, xilinx_uartlite_properties);
|
||||
}
|
||||
|
||||
static const TypeInfo xilinx_uartlite_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue