Maxim Levitsky 2e2fa1166d KVM: SVM: Limit incorrect check on SVM_EXIT_ERR to running as a VM
JIRA: https://issues.redhat.com/browse/RHEL-151869

commit a08ca6691fd3ab40e40eb6600193672d50c7a7ba
Author: Sean Christopherson <seanjc@google.com>
Date:   Tue Dec 30 13:13:45 2025 -0800

    KVM: SVM: Limit incorrect check on SVM_EXIT_ERR to running as a VM

    Limit KVM's incorrect check for VMXEXIT_INVALID, a.k.a. SVM_EXIT_ERR, to
    running as a VM, as detected by X86_FEATURE_HYPERVISOR.  The exit_code and
    all failure codes, e.g. VMXEXIT_INVALID, are 64-bit values, and so checking
    only bits 31:0 could result in false positives when running on non-broken
    hardware, e.g. in the extremely unlikely scenario exit code 0xffffffffull
    is ever generated by hardware.

    Keep the 32-bit check to play nice with running on broken KVM (for years,
    KVM has not set bits 63:32 when synthesizing nested SVM VM-Exits).

    Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
    Link: https://patch.msgid.link/20251230211347.4099600-7-seanjc@google.com
    Signed-off-by: Sean Christopherson <seanjc@google.com>

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
2026-07-21 14:11:58 -04:00
2026-07-15 11:04:26 -04:00
2026-07-01 16:16:28 -04:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%