Devices that are compliant with virtio-1 do not support scsi passthrough any more (and it has not been a recommended setup anyway for quite some time). To avoid having to switch it off explicitly in newer qemus that turn on virtio-1 by default, let's switch the default to scsi=false for 2.5. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Message-id: 1444991154-79217-4-git-send-email-cornelia.huck@de.ibm.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
		
			
				
	
	
		
			69 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef HW_COMPAT_H
 | 
						|
#define HW_COMPAT_H
 | 
						|
 | 
						|
#define HW_COMPAT_2_4 \
 | 
						|
        {\
 | 
						|
            .driver   = "virtio-blk-device",\
 | 
						|
            .property = "scsi",\
 | 
						|
            .value    = "true",\
 | 
						|
        },
 | 
						|
 | 
						|
#define HW_COMPAT_2_3 \
 | 
						|
        {\
 | 
						|
            .driver   = "virtio-blk-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-balloon-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-serial-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-9p-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-rng-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },
 | 
						|
 | 
						|
#define HW_COMPAT_2_2 \
 | 
						|
        /* empty */
 | 
						|
 | 
						|
#define HW_COMPAT_2_1 \
 | 
						|
        {\
 | 
						|
            .driver   = "intel-hda",\
 | 
						|
            .property = "old_msi_addr",\
 | 
						|
            .value    = "on",\
 | 
						|
        },{\
 | 
						|
            .driver   = "VGA",\
 | 
						|
            .property = "qemu-extended-regs",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "secondary-vga",\
 | 
						|
            .property = "qemu-extended-regs",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-scsi-pci",\
 | 
						|
            .property = "any_layout",\
 | 
						|
            .value    = "off",\
 | 
						|
        },{\
 | 
						|
            .driver   = "usb-mouse",\
 | 
						|
            .property = "usb_version",\
 | 
						|
            .value    = stringify(1),\
 | 
						|
        },{\
 | 
						|
            .driver   = "usb-kbd",\
 | 
						|
            .property = "usb_version",\
 | 
						|
            .value    = stringify(1),\
 | 
						|
        },{\
 | 
						|
            .driver   = "virtio-pci",\
 | 
						|
            .property = "virtio-pci-bus-master-bug-migration",\
 | 
						|
            .value    = "on",\
 | 
						|
        },
 | 
						|
 | 
						|
#endif /* HW_COMPAT_H */
 |