From: Chenyi Qiang <chenyi.qiang@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
Eduardo Habkost <ehabkost@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
Xiaoyao Li <xiaoyao.li@intel.com>
Cc: Chenyi Qiang <chenyi.qiang@intel.com>,
kvm@vger.kernel.org, qemu-devel@nongnu.org
Subject: [PATCH v2 0/3] Enable notify VM exit
Date: Fri, 18 Mar 2022 16:29:31 +0800 [thread overview]
Message-ID: <20220318082934.25030-1-chenyi.qiang@intel.com> (raw)
Notify VM exit is introduced to mitigate the potential DOS attach from
malicious VM. This series is the userspace part to enable this feature
through a new KVM capability KVM_CAP_X86_NOTIFY_VMEXIT. The
corresponding KVM patch series is available at
https://lore.kernel.org/lkml/20220318074955.22428-1-chenyi.qiang@intel.com/
---
Change logs:
v1 -> v2
- Add some commit message to explain why we disable Notify VM exit by default.
- Rename KVM_VCPUEVENT_SHUTDOWN to KVM_VCPUEVENT_TRIPLE_FAULT.
- Do the corresponding change to use the KVM_VCPUEVENTS_TRIPLE_FAULT
to save/restore the triple fault event to avoid lose some synthesized
triple fault from KVM.
- v1: https://lore.kernel.org/qemu-devel/20220310090205.10645-1-chenyi.qiang@intel.com/
---
Chenyi Qiang (3):
linux-headers: Sync the linux headers
i386: kvm: Save&restore triple fault event
i386: Add notify VM exit support
hw/i386/x86.c | 24 +++++++++++++
include/hw/i386/x86.h | 3 ++
linux-headers/asm-x86/kvm.h | 4 +++
linux-headers/linux/kvm.h | 29 +++++++++++++---
target/i386/cpu.c | 1 +
target/i386/cpu.h | 1 +
target/i386/kvm/kvm.c | 68 ++++++++++++++++++++++++++-----------
7 files changed, 105 insertions(+), 25 deletions(-)
--
2.17.1
next reply other threads:[~2022-03-18 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-18 8:29 Chenyi Qiang [this message]
2022-03-18 8:29 ` [PATCH v2 1/3] linux-headers: Sync the linux headers Chenyi Qiang
2022-03-18 8:29 ` [PATCH v2 2/3] i386: kvm: Save&restore triple fault event Chenyi Qiang
2022-03-18 8:29 ` [PATCH v2 3/3] i386: Add notify VM exit support Chenyi Qiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220318082934.25030-1-chenyi.qiang@intel.com \
--to=chenyi.qiang@intel.com \
--cc=ehabkost@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=xiaoyao.li@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).