 f2604d8508
			
		
	
	
		f2604d8508
		
	
	
	
	
		
			
			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>
		
			
				
	
	
		
			25 lines
		
	
	
		
			719 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			719 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #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");
 | |
| }
 |