]> Git Repo - qemu.git/commitdiff
x86/cpu: Use max host physical address if -cpu max option is applied
authorYang Weijiang <[email protected]>
Wed, 13 Jan 2021 09:04:30 +0000 (17:04 +0800)
committerPaolo Bonzini <[email protected]>
Thu, 21 Jan 2021 12:00:41 +0000 (13:00 +0100)
QEMU option -cpu max(max_features) means "Enables all features supported by
the accelerator in the current host", this looks true for all the features
except guest max physical address width, so add this patch to enable it.

Signed-off-by: Yang Weijiang <[email protected]>
Message-Id: <20210113090430[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target/i386/cpu.c

index 35459a38bb1ce7180c5c28e6e215489ef35d3bfe..72a79e6019b5b99abd184985d75b2117fc33bf1c 100644 (file)
@@ -4319,6 +4319,7 @@ static void max_x86_cpu_initfn(Object *obj)
         if (lmce_supported()) {
             object_property_set_bool(OBJECT(cpu), "lmce", true, &error_abort);
         }
+        object_property_set_bool(OBJECT(cpu), "host-phys-bits", true, &error_abort);
     } else {
         object_property_set_str(OBJECT(cpu), "vendor", CPUID_VENDOR_AMD,
                                 &error_abort);
This page took 0.036589 seconds and 4 git commands to generate.