Re: [PATCH v2 36/58] memory: Introduce memory_region_init_ram_gmem()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.li@xxxxxxxxx>
---
  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"




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux