OSDN Git Service

x86/cpu: Use max host physical address if -cpu max option is applied
authorYang Weijiang <weijiang.yang@intel.com>
Wed, 13 Jan 2021 09:04:30 +0000 (17:04 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Jan 2021 12:00:41 +0000 (13:00 +0100)
commit5a140b255df922b98a165f0a2919602943c9062f
tree66f3e4b07c9461f6fda53425f59e045f376da050
parent15588a62451fc8e911372c52beb9560f2616ca02
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>
target/i386/cpu.c