Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-22 Thread David Hildenbrand
On 22.09.23 09:03, Xiaoyao Li wrote: On 9/21/2023 5:11 PM, David Hildenbrand wrote: 3. What is KVM_X86_SW_PROTECTED_VM going to look like? and do we need it? Why implement it when you have to ask others for a motivation? 😉 Personally, I'm not sure if it is really useful, especially in this s

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-22 Thread Xiaoyao Li
On 9/21/2023 5:11 PM, David Hildenbrand wrote: 3. What is KVM_X86_SW_PROTECTED_VM going to look like? and do we need it? Why implement it when you have to ask others for a motivation? 😉 Personally, I'm not sure if it is really useful, especially in this state. Yeah, as of today, KVM_X86_S

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-21 Thread David Hildenbrand
2. hugepage support. KVM gmem can be allocated from hugetlbfs. How does QEMU determine Not yet it can't. gmem only supports THP, hugetlbfs is a future thing, if it's ever supported. I wouldn't be at all surprised if we end up going down a slightly different route and don't use hugetlbfs

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-21 Thread David Hildenbrand
This version still leave some opens to be discussed: 1. whether we need "private" propery to be user-settable?     It seems unnecessary because vm-type is determined. If the VM is     confidential-guest, then the RAM of the guest must be able to be     mapped as private, i.e., have kvm gmem b

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-14 Thread Xiaoyao Li
On 9/14/2023 9:09 PM, David Hildenbrand wrote: On 14.09.23 05:50, Xiaoyao Li wrote: It's the v2 RFC of enabling KVM gmem[1] as the backend for private memory. For confidential-computing, KVM provides gmem/guest_mem interfaces for userspace, like QEMU, to allocate user-unaccesible private memory

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-14 Thread Sean Christopherson
On Thu, Sep 14, 2023, David Hildenbrand wrote: > On 14.09.23 05:50, Xiaoyao Li wrote: > > It's the v2 RFC of enabling KVM gmem[1] as the backend for private > > memory. > > > > For confidential-computing, KVM provides gmem/guest_mem interfaces for > > userspace, like QEMU, to allocate user-unacces

Re: [RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-14 Thread David Hildenbrand
On 14.09.23 05:50, Xiaoyao Li wrote: It's the v2 RFC of enabling KVM gmem[1] as the backend for private memory. For confidential-computing, KVM provides gmem/guest_mem interfaces for userspace, like QEMU, to allocate user-unaccesible private memory. This series aims to add gmem support in QEMU's

[RFC PATCH v2 00/21] QEMU gmem implemention

2023-09-13 Thread Xiaoyao Li
It's the v2 RFC of enabling KVM gmem[1] as the backend for private memory. For confidential-computing, KVM provides gmem/guest_mem interfaces for userspace, like QEMU, to allocate user-unaccesible private memory. This series aims to add gmem support in QEMU's RAMBlock so that each RAM can have bot