diff options
Diffstat (limited to 'hw/core')
| -rw-r--r-- | hw/core/hotplug-stubs.c | 34 | ||||
| -rw-r--r-- | hw/core/machine.c | 8 | ||||
| -rw-r--r-- | hw/core/meson.build | 14 |
3 files changed, 11 insertions, 45 deletions
diff --git a/hw/core/hotplug-stubs.c b/hw/core/hotplug-stubs.c deleted file mode 100644 index 7aadaa29bd..0000000000 --- a/hw/core/hotplug-stubs.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Hotplug handler stubs - * - * Copyright (c) Red Hat - * - * Authors: - * Philippe Mathieu-Daudé <philmd@redhat.com>, - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ -#include "qemu/osdep.h" -#include "hw/qdev-core.h" - -HotplugHandler *qdev_get_hotplug_handler(DeviceState *dev) -{ - return NULL; -} - -void hotplug_handler_pre_plug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp) -{ - g_assert_not_reached(); -} - -void hotplug_handler_plug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp) -{ - g_assert_not_reached(); -} diff --git a/hw/core/machine.c b/hw/core/machine.c index 37ede0e7d4..582c2df37a 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -33,6 +33,9 @@ #include "hw/virtio/virtio-iommu.h" #include "audio/audio.h" +GlobalProperty hw_compat_9_0[] = {}; +const size_t hw_compat_9_0_len = G_N_ELEMENTS(hw_compat_9_0); + GlobalProperty hw_compat_8_2[] = { { "migration", "zero-page-detection", "legacy"}, { TYPE_VIRTIO_IOMMU_PCI, "granule", "4k" }, @@ -1198,6 +1201,11 @@ bool machine_mem_merge(MachineState *machine) return machine->mem_merge; } +bool machine_require_guest_memfd(MachineState *machine) +{ + return machine->require_guest_memfd; +} + static char *cpu_slot_to_string(const CPUArchId *cpu) { GString *s = g_string_new(NULL); diff --git a/hw/core/meson.build b/hw/core/meson.build index e26f2e088c..f20d4143f7 100644 --- a/hw/core/meson.build +++ b/hw/core/meson.build @@ -3,7 +3,6 @@ hwcore_ss.add(files( 'bus.c', 'qdev-properties.c', 'qdev.c', - 'reset.c', 'resetcontainer.c', 'resettable.c', 'vmstate-if.c', @@ -12,16 +11,6 @@ hwcore_ss.add(files( 'clock.c', 'qdev-clock.c', )) -if have_system - hwcore_ss.add(files( - 'hotplug.c', - 'qdev-hotplug.c', - )) -else - hwcore_ss.add(files( - 'hotplug-stubs.c', - )) -endif common_ss.add(files('cpu-common.c')) common_ss.add(files('machine-smp.c')) @@ -40,6 +29,7 @@ system_ss.add(files( 'cpu-sysemu.c', 'fw-path-provider.c', 'gpio.c', + 'hotplug.c', 'loader.c', 'machine-hmp-cmds.c', 'machine-qmp-cmds.c', @@ -48,7 +38,9 @@ system_ss.add(files( 'null-machine.c', 'numa.c', 'qdev-fw.c', + 'qdev-hotplug.c', 'qdev-properties-system.c', + 'reset.c', 'sysbus.c', 'vm-change-state-handler.c', 'clock-vmstate.c', |