"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hw/arm/virt.c" between
qemu-6.0.0-rc1.tar.xz and qemu-6.0.0-rc2.tar.xz

About: QEMU is a generic machine/processor emulator and virtualizer. Release candidate.

virt.c  (qemu-6.0.0-rc1.tar.xz):virt.c  (qemu-6.0.0-rc2.tar.xz)
skipping to change at line 2443 skipping to change at line 2443
g_free(resv_prop_str); g_free(resv_prop_str);
} }
} }
static void virt_machine_device_plug_cb(HotplugHandler *hotplug_dev, static void virt_machine_device_plug_cb(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp) DeviceState *dev, Error **errp)
{ {
VirtMachineState *vms = VIRT_MACHINE(hotplug_dev); VirtMachineState *vms = VIRT_MACHINE(hotplug_dev);
if (vms->platform_bus_dev) { if (vms->platform_bus_dev) {
if (object_dynamic_cast(OBJECT(dev), TYPE_SYS_BUS_DEVICE)) { MachineClass *mc = MACHINE_GET_CLASS(vms);
if (device_is_dynamic_sysbus(mc, dev)) {
platform_bus_link_device(PLATFORM_BUS_DEVICE(vms->platform_bus_dev), platform_bus_link_device(PLATFORM_BUS_DEVICE(vms->platform_bus_dev),
SYS_BUS_DEVICE(dev)); SYS_BUS_DEVICE(dev));
} }
} }
if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) { if (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM)) {
virt_memory_plug(hotplug_dev, dev, errp); virt_memory_plug(hotplug_dev, dev, errp);
} }
if (object_dynamic_cast(OBJECT(dev), TYPE_VIRTIO_IOMMU_PCI)) { if (object_dynamic_cast(OBJECT(dev), TYPE_VIRTIO_IOMMU_PCI)) {
PCIDevice *pdev = PCI_DEVICE(dev); PCIDevice *pdev = PCI_DEVICE(dev);
skipping to change at line 2527 skipping to change at line 2529
virt_dimm_unplug(hotplug_dev, dev, errp); virt_dimm_unplug(hotplug_dev, dev, errp);
} else { } else {
error_setg(errp, "virt: device unplug for unsupported device" error_setg(errp, "virt: device unplug for unsupported device"
" type: %s", object_get_typename(OBJECT(dev))); " type: %s", object_get_typename(OBJECT(dev)));
} }
} }
static HotplugHandler *virt_machine_get_hotplug_handler(MachineState *machine, static HotplugHandler *virt_machine_get_hotplug_handler(MachineState *machine,
DeviceState *dev) DeviceState *dev)
{ {
if (object_dynamic_cast(OBJECT(dev), TYPE_SYS_BUS_DEVICE) || MachineClass *mc = MACHINE_GET_CLASS(machine);
if (device_is_dynamic_sysbus(mc, dev) ||
(object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM))) { (object_dynamic_cast(OBJECT(dev), TYPE_PC_DIMM))) {
return HOTPLUG_HANDLER(machine); return HOTPLUG_HANDLER(machine);
} }
if (object_dynamic_cast(OBJECT(dev), TYPE_VIRTIO_IOMMU_PCI)) { if (object_dynamic_cast(OBJECT(dev), TYPE_VIRTIO_IOMMU_PCI)) {
VirtMachineState *vms = VIRT_MACHINE(machine); VirtMachineState *vms = VIRT_MACHINE(machine);
if (!vms->bootinfo.firmware_loaded || !virt_is_acpi_enabled(vms)) { if (!vms->bootinfo.firmware_loaded || !virt_is_acpi_enabled(vms)) {
return HOTPLUG_HANDLER(machine); return HOTPLUG_HANDLER(machine);
} }
} }
skipping to change at line 2670 skipping to change at line 2674
"Set on/off to enable/disable emulatin g a " "Set on/off to enable/disable emulatin g a "
"guest CPU which implements the ARM " "guest CPU which implements the ARM "
"Memory Tagging Extension"); "Memory Tagging Extension");
object_class_property_add_bool(oc, "its", virt_get_its, object_class_property_add_bool(oc, "its", virt_get_its,
virt_set_its); virt_set_its);
object_class_property_set_description(oc, "its", object_class_property_set_description(oc, "its",
"Set on/off to enable/disable " "Set on/off to enable/disable "
"ITS instantiation"); "ITS instantiation");
object_class_property_add_str(oc, "oem-id", object_class_property_add_str(oc, "x-oem-id",
virt_get_oem_id, virt_get_oem_id,
virt_set_oem_id); virt_set_oem_id);
object_class_property_set_description(oc, "oem-id", object_class_property_set_description(oc, "x-oem-id",
"Override the default value of field O EMID " "Override the default value of field O EMID "
"in ACPI table header." "in ACPI table header."
"The string may be up to 6 bytes in si ze"); "The string may be up to 6 bytes in si ze");
object_class_property_add_str(oc, "oem-table-id", object_class_property_add_str(oc, "x-oem-table-id",
virt_get_oem_table_id, virt_get_oem_table_id,
virt_set_oem_table_id); virt_set_oem_table_id);
object_class_property_set_description(oc, "oem-table-id", object_class_property_set_description(oc, "x-oem-table-id",
"Override the default value of field O EM Table ID " "Override the default value of field O EM Table ID "
"in ACPI table header." "in ACPI table header."
"The string may be up to 8 bytes in si ze"); "The string may be up to 8 bytes in si ze");
} }
static void virt_instance_init(Object *obj) static void virt_instance_init(Object *obj)
{ {
VirtMachineState *vms = VIRT_MACHINE(obj); VirtMachineState *vms = VIRT_MACHINE(obj);
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms); VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
 End of changes. 6 change blocks. 
6 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)