diff options
author | Yu Zhang <yu.c.zhang@linux.intel.com> | 2019-02-01 00:09:43 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-22 19:25:05 +0100 |
commit | 511da98d207d5c0675a10351b01e37cbe50a79e5 (patch) | |
tree | e688f8fe345665af98863606f6eb38174a4fc3e9 /net/bpf/test_run.c | |
parent | ad7dc69aeb23138cc23c406cac25003b97e8ee17 (diff) |
kvm: x86: Return LA57 feature based on hardware capability
Previously, 'commit 372fddf70904 ("x86/mm: Introduce the 'no5lvl' kernel
parameter")' cleared X86_FEATURE_LA57 in boot_cpu_data, if Linux chooses
to not run in 5-level paging mode. Yet boot_cpu_data is queried by
do_cpuid_ent() as the host capability later when creating vcpus, and Qemu
will not be able to detect this feature and create VMs with LA57 feature.
As discussed earlier, VMs can still benefit from extended linear address
width, e.g. to enhance features like ASLR. So we would like to fix this,
by return the true hardware capability when Qemu queries.
Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/bpf/test_run.c')
0 files changed, 0 insertions, 0 deletions