aboutsummaryrefslogtreecommitdiff
path: root/stubs
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-08 17:53:23 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commitf2604d8508a12a2060e854283fa076c9f09d1d10 (patch)
tree8dfa4f6dc76d421dec74c11a05791e4404ca3e54 /stubs
parent89857312f3245e589b161eb535261bae7b7fcce2 (diff)
hw/virtio: move stubs out of stubs/
Since the virtio memory device stubs are needed exactly when the Kconfig symbol is not enabled, they can be placed in hw/virtio/ and conditionalized on CONFIG_VIRTIO_MD. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240408155330.522792-12-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs')
-rw-r--r--stubs/meson.build1
-rw-r--r--stubs/virtio-md-pci.c24
2 files changed, 0 insertions, 25 deletions
diff --git a/stubs/meson.build b/stubs/meson.build
index 45616afbfa..60e32d363f 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -57,7 +57,6 @@ if have_system
stub_ss.add(files('fw_cfg.c'))
stub_ss.add(files('semihost.c'))
stub_ss.add(files('xen-hw-stub.c'))
- stub_ss.add(files('virtio-md-pci.c'))
else
stub_ss.add(files('qdev.c'))
endif
diff --git a/stubs/virtio-md-pci.c b/stubs/virtio-md-pci.c
deleted file mode 100644
index ce5bba0c9d..0000000000
--- a/stubs/virtio-md-pci.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "qemu/osdep.h"
-#include "qapi/error.h"
-#include "hw/virtio/virtio-md-pci.h"
-
-void virtio_md_pci_pre_plug(VirtIOMDPCI *vmd, MachineState *ms, Error **errp)
-{
- error_setg(errp, "virtio based memory devices not supported");
-}
-
-void virtio_md_pci_plug(VirtIOMDPCI *vmd, MachineState *ms, Error **errp)
-{
- error_setg(errp, "virtio based memory devices not supported");
-}
-
-void virtio_md_pci_unplug_request(VirtIOMDPCI *vmd, MachineState *ms,
- Error **errp)
-{
- error_setg(errp, "virtio based memory devices not supported");
-}
-
-void virtio_md_pci_unplug(VirtIOMDPCI *vmd, MachineState *ms, Error **errp)
-{
- error_setg(errp, "virtio based memory devices not supported");
-}