]> Git Repo - qemu.git/commitdiff
virtio-mem: Set "unplugged-inaccessible=auto" for the 7.0 machine on x86
authorDavid Hildenbrand <[email protected]>
Fri, 17 Dec 2021 13:40:39 +0000 (14:40 +0100)
committerMichael S. Tsirkin <[email protected]>
Sat, 8 Jan 2022 00:30:13 +0000 (19:30 -0500)
Set the new default to "auto", keeping it set to "off" for compat
machines. This property is only available for x86 targets.

Reviewed-by: Michal Privoznik <[email protected]>
Reviewed-by: Pankaj Gupta <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <20211217134039[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/pc.c
hw/virtio/virtio-mem.c

index 959efa5b3fa6a688ff2e5daadb82f3600971d1b6..718ab81ba807a51fc0c827e4672ed40cc1215e04 100644 (file)
@@ -95,7 +95,9 @@
 #include "trace.h"
 #include CONFIG_DEVICES
 
-GlobalProperty pc_compat_6_2[] = {};
+GlobalProperty pc_compat_6_2[] = {
+    { "virtio-mem", "unplugged-inaccessible", "off" },
+};
 const size_t pc_compat_6_2_len = G_N_ELEMENTS(pc_compat_6_2);
 
 GlobalProperty pc_compat_6_1[] = {
index fb6687d4c77a503f3db7ec302b30558a52fe675e..04c223b0c97b1017e0baecdd2b8a6c2804a21d6c 100644 (file)
@@ -1201,7 +1201,7 @@ static Property virtio_mem_properties[] = {
                      TYPE_MEMORY_BACKEND, HostMemoryBackend *),
 #if defined(VIRTIO_MEM_HAS_LEGACY_GUESTS)
     DEFINE_PROP_ON_OFF_AUTO(VIRTIO_MEM_UNPLUGGED_INACCESSIBLE_PROP, VirtIOMEM,
-                            unplugged_inaccessible, ON_OFF_AUTO_OFF),
+                            unplugged_inaccessible, ON_OFF_AUTO_AUTO),
 #endif
     DEFINE_PROP_END_OF_LIST(),
 };
This page took 0.033373 seconds and 4 git commands to generate.