Revision b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 authored by Liran Alon on 03 September 2018, 12:20:22 UTC, committed by Radim Krčmář on 07 September 2018, 16:38:42 UTC
Consider the case L1 had a IRQ/NMI event until it executed VMLAUNCH/VMRESUME which wasn't delivered because it was disallowed (e.g. interrupts disabled). When L1 executes VMLAUNCH/VMRESUME, L0 needs to evaluate if this pending event should cause an exit from L2 to L1 or delivered directly to L2 (e.g. In case L1 don't intercept EXTERNAL_INTERRUPT). Usually this would be handled by L0 requesting a IRQ/NMI window by setting VMCS accordingly. However, this setting was done on VMCS01 and now VMCS02 is active instead. Thus, when L1 executes VMLAUNCH/VMRESUME we force L0 to perform pending event evaluation by requesting a KVM_REQ_EVENT. Note that above scenario exists when L1 KVM is about to enter L2 but requests an "immediate-exit". As in this case, L1 will disable-interrupts and then send a self-IPI before entering L2. Reviewed-by: Nikita Leshchenko <nikita.leshchenko@oracle.com> Co-developed-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Liran Alon <liran.alon@oracle.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
1 parent 564ad0a
File | Mode | Size |
---|---|---|
LSM | ||
mm | ||
pm | ||
README.rst | -rw-r--r-- | 18.1 KB |
bcache.rst | -rw-r--r-- | 23.7 KB |
binfmt-misc.rst | -rw-r--r-- | 7.2 KB |
braille-console.rst | -rw-r--r-- | 1.7 KB |
bug-bisect.rst | -rw-r--r-- | 2.1 KB |
bug-hunting.rst | -rw-r--r-- | 15.0 KB |
cgroup-v2.rst | -rw-r--r-- | 78.1 KB |
conf.py | -rw-r--r-- | 249 bytes |
devices.rst | -rw-r--r-- | 11.8 KB |
devices.txt | -rw-r--r-- | 104.2 KB |
dynamic-debug-howto.rst | -rw-r--r-- | 13.0 KB |
index.rst | -rw-r--r-- | 1.8 KB |
init.rst | -rw-r--r-- | 2.6 KB |
initrd.rst | -rw-r--r-- | 14.3 KB |
java.rst | -rw-r--r-- | 10.9 KB |
kernel-parameters.rst | -rw-r--r-- | 8.0 KB |
kernel-parameters.txt | -rw-r--r-- | 174.9 KB |
l1tf.rst | -rw-r--r-- | 24.3 KB |
md.rst | -rw-r--r-- | 27.0 KB |
module-signing.rst | -rw-r--r-- | 11.1 KB |
mono.rst | -rw-r--r-- | 2.5 KB |
parport.rst | -rw-r--r-- | 9.3 KB |
ramoops.rst | -rw-r--r-- | 5.7 KB |
ras.rst | -rw-r--r-- | 41.7 KB |
reporting-bugs.rst | -rw-r--r-- | 7.5 KB |
security-bugs.rst | -rw-r--r-- | 3.4 KB |
serial-console.rst | -rw-r--r-- | 4.3 KB |
sysfs-rules.rst | -rw-r--r-- | 9.4 KB |
sysrq.rst | -rw-r--r-- | 12.2 KB |
tainted-kernels.rst | -rw-r--r-- | 2.3 KB |
thunderbolt.rst | -rw-r--r-- | 10.3 KB |
unicode.rst | -rw-r--r-- | 7.1 KB |
vga-softcursor.rst | -rw-r--r-- | 1.9 KB |
Computing file changes ...