qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Enable notify VM exit
@ 2022-03-18  8:29 Chenyi Qiang
  2022-03-18  8:29 ` [PATCH v2 1/3] linux-headers: Sync the linux headers Chenyi Qiang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chenyi Qiang @ 2022-03-18  8:29 UTC (permalink / raw)
  To: Paolo Bonzini, Richard Henderson, Eduardo Habkost,
	Marcelo Tosatti, Xiaoyao Li
  Cc: Chenyi Qiang, kvm, qemu-devel

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-18  8:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-18  8:29 [PATCH v2 0/3] Enable notify VM exit Chenyi Qiang
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

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).