summaryrefslogtreecommitdiffstats
path: root/hw/pc.h
diff options
context:
space:
mode:
authorPaolo Bonzini2013-02-08 14:06:15 +0100
committerKevin Wolf2013-02-22 21:29:45 +0100
commitbf3caa3dc17552b323cec6831301a22cfc98ecd5 (patch)
tree06e77972363de933b5b1fb4b59a9fa6be68813e6 /hw/pc.h
parentblockdev: enable discard by default (diff)
downloadqemu-bf3caa3dc17552b323cec6831301a22cfc98ecd5.tar.gz
qemu-bf3caa3dc17552b323cec6831301a22cfc98ecd5.tar.xz
qemu-bf3caa3dc17552b323cec6831301a22cfc98ecd5.zip
pc: add compatibility machine types for 1.4
Adds both pc-i440fx-1.4 and pc-q35-1.4. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r--hw/pc.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/hw/pc.h b/hw/pc.h
index fbcf43d717..da1b102ef1 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -187,4 +187,35 @@ void pc_system_firmware_init(MemoryRegion *rom_memory);
int e820_add_entry(uint64_t, uint64_t, uint32_t);
+#define PC_COMPAT_1_4 \
+ {\
+ .driver = "scsi-hd",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "scsi-cd",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "scsi-disk",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "ide-hd",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "ide-cd",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "ide-drive",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ },{\
+ .driver = "virtio-blk-pci",\
+ .property = "discard_granularity",\
+ .value = stringify(0),\
+ }
+
#endif