lkml.org 
[lkml]   [2024]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v19 018/130] KVM: x86/mmu: Assume guest MMIOs are shared
    Date
    On Mon, 2024-02-26 at 00:25 -0800, isaku.yamahata@intel.com wrote:
    > From: Chao Gao <chao.gao@intel.com>
    >
    > TODO: Drop this patch once the common patch is merged.

    What is this TODO talking about?

    >
    > When memory slot isn't found for kvm page fault, handle it as MMIO.
    >
    > The guest of TDX_VM, SNP_VM, or SW_PROTECTED_VM don't necessarily convert
    > the virtual MMIO range to shared before accessing it.  When the guest tries
    > to access the virtual device's MMIO without any private/shared conversion,
    > An NPT fault or EPT violation is raised first to find private-shared
    > mismatch.  Don't raise KVM_EXIT_MEMORY_FAULT, fall back to KVM_PFN_NOLSLOT.

    If this is general KVM_X86_SW_PROTECTED_VM behavior, can we pull it out of the TDX series?

    >
    > Signed-off-by: Chao Gao <chao.gao@intel.com>
    > Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
    > ---

    \
     
     \ /
      Last update: 2024-05-27 16:08    [W:4.264 / U:0.216 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site