All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] i386: Clean up SGX for microvm, completely
@ 2024-07-30  4:55 Zhao Liu
  2024-07-30  4:55 ` [PATCH 1/4] target/i386/cpu: Remove unnecessary SGX feature words checks Zhao Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Zhao Liu @ 2024-07-30  4:55 UTC (permalink / raw)
  To: Paolo Bonzini, Michael S . Tsirkin, Marcel Apfelbaum,
	Richard Henderson, Eduardo Habkost, qemu-devel
  Cc: Zhao Liu

Hi,

Currently, only PC machine supports SGX and microvm doesn't.

The commit 13be929aff80 ("target/i386: do not crash if microvm guest
uses SGX CPUID leaves") has cleaned up the CPUID 0x12.{0x2..N} for
microvm to avoid Guest crash.

Per my comment on that commit [1], microvm deserves more cleanup to
mask off CPUID 0x12.{0x0,0x1} subleaves as well. But once I actually got
my hands on this, I realized not only we need to clean up CPUID 0x12,
but also we should clean up CPUID 0x7.0.ebx[SGX] for microvm.

Thus, I have this series to completely clean up SGX for microvm.

[1]: https://lore.kernel.org/qemu-devel/Zpcz0cFjW8extm9T@intel.com/

Thanks and Best Regards,
Zhao
---
Zhao Liu (4):
  target/i386/cpu: Remove unnecessary SGX feature words checks
  target/i386/cpu: Explicitly express SGX_LC and SGX feature words
    dependency
  target/i386/cpu: Add dependencies of CPUID 0x12 leaves
  target/i386/cpu: Mask off SGX/SGX_LC feature words for non-PC machine

 hw/i386/sgx-stub.c        |  5 ++++
 hw/i386/sgx.c             |  8 +++++++
 include/hw/i386/sgx-epc.h |  1 +
 target/i386/cpu.c         | 50 ++++++++++++++++++++++++---------------
 4 files changed, 45 insertions(+), 19 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-07-30 15:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30  4:55 [PATCH 0/4] i386: Clean up SGX for microvm, completely Zhao Liu
2024-07-30  4:55 ` [PATCH 1/4] target/i386/cpu: Remove unnecessary SGX feature words checks Zhao Liu
2024-07-30  4:55 ` [PATCH 2/4] target/i386/cpu: Explicitly express SGX_LC and SGX feature words dependency Zhao Liu
2024-07-30  4:55 ` [PATCH 3/4] target/i386/cpu: Add dependencies of CPUID 0x12 leaves Zhao Liu
2024-07-30  4:55 ` [PATCH 4/4] target/i386/cpu: Mask off SGX/SGX_LC feature words for non-PC machine Zhao Liu
2024-07-30 15:44 ` [PATCH 0/4] i386: Clean up SGX for microvm, completely Paolo Bonzini
2024-07-30 16:07   ` Zhao Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.