On 18/8/23 11:50, Xiaoyao Li wrote:
Introduce memory_region_init_ram_gmem() to allocate private gmem on the
MemoryRegion initialization. It's for the usercase of TDVF, which must
be private on TDX case.

Signed-off-by: Xiaoyao Li <xiaoyao...@intel.com>
---
  include/exec/memory.h |  6 +++++
  softmmu/memory.c      | 52 +++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 58 insertions(+)


diff --git a/softmmu/memory.c b/softmmu/memory.c
index af6aa3c1e3c9..ded44dcef1aa 100644
--- a/softmmu/memory.c
+++ b/softmmu/memory.c
@@ -25,6 +25,7 @@
  #include "qom/object.h"
  #include "trace.h"
+#include <linux/kvm.h>

Unlikely to build on non-Linux hosts.

  #include "exec/memory-internal.h"
  #include "exec/ram_addr.h"
  #include "sysemu/kvm.h"


Reply via email to