aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorGravatar KarimAllah Ahmed <karahmed@amazon.de> 2019-07-10 11:13:13 +0200
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2019-07-10 16:25:39 +0200
commitb614c6027896ff9ad6757122e84760d938cab15e (patch)
tree3a8901d55ac71cc4af0a2e671d48929f64db7df2 /arch/x86/kvm
parentKVM: LAPIC: Retry tune per-vCPU timer_advance_ns if adaptive tuning goes insane (diff)
downloadlinux-b614c6027896ff9ad6757122e84760d938cab15e.tar.gz
linux-b614c6027896ff9ad6757122e84760d938cab15e.tar.bz2
linux-b614c6027896ff9ad6757122e84760d938cab15e.zip
KVM: Properly check if "page" is valid in kvm_vcpu_unmap
The field "page" is initialized to KVM_UNMAPPED_PAGE when it is not used (i.e. when the memory lives outside kernel control). So this check will always end up using kunmap even for memremap regions. Fixes: e45adf665a53 ("KVM: Introduce a new guest mapping API") Cc: stable@vger.kernel.org Signed-off-by: KarimAllah Ahmed <karahmed@amazon.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
0 files changed, 0 insertions, 0 deletions