diff options
author | Yang Weijiang <weijiang.yang@intel.com> | 2021-01-13 17:04:30 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-01-21 13:00:41 +0100 |
commit | 5a140b255df922b98a165f0a2919602943c9062f (patch) | |
tree | 66f3e4b07c9461f6fda53425f59e045f376da050 /target/i386 | |
parent | 15588a62451fc8e911372c52beb9560f2616ca02 (diff) | |
download | qemu-5a140b255df922b98a165f0a2919602943c9062f.zip qemu-5a140b255df922b98a165f0a2919602943c9062f.tar.gz qemu-5a140b255df922b98a165f0a2919602943c9062f.tar.bz2 |
x86/cpu: Use max host physical address if -cpu max option is applied
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 <weijiang.yang@intel.com>
Message-Id: <20210113090430.26394-1-weijiang.yang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r-- | target/i386/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 35459a3..72a79e6 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -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); |