Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: virtual: kvm: correct one bit description in APF case

When commit 6adba5274206 (KVM: Let host know whether the guest can
handle async PF in non-userspace context.) is introduced, actually
bit 2 still is reserved and should be zero. Instead, bit 1 is 1 to
indicate if asynchronous page faults can be injected when vcpu is
in cpl == 0, and also please see this,

in the file kvm_para.h, #define KVM_ASYNC_PF_SEND_ALWAYS (1 << 1).

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Tiejun Chen and committed by
Paolo Bonzini
91690bf3 16f8a6f9

+1 -1
+1 -1
Documentation/virtual/kvm/msr.txt
··· 168 168 64 byte memory area which must be in guest RAM and must be 169 169 zeroed. Bits 5-2 are reserved and should be zero. Bit 0 is 1 170 170 when asynchronous page faults are enabled on the vcpu 0 when 171 - disabled. Bit 2 is 1 if asynchronous page faults can be injected 171 + disabled. Bit 1 is 1 if asynchronous page faults can be injected 172 172 when vcpu is in cpl == 0. 173 173 174 174 First 4 byte of 64 byte memory location will be written to by