Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

2023-01-20 Thread Jarkko Sakkinen
On Tue, Jan 10, 2023 at 05:14:32PM +0800, Chao Peng wrote: > On Mon, Jan 09, 2023 at 07:32:05PM +, Sean Christopherson wrote: > > On Fri, Jan 06, 2023, Chao Peng wrote: > > > On Thu, Jan 05, 2023 at 11:23:01AM +0000, Jarkko Sakkinen wrote: > > > > On Fri, Dec 02,

Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

2023-01-20 Thread Jarkko Sakkinen
On Mon, Jan 09, 2023 at 07:32:05PM +, Sean Christopherson wrote: > On Fri, Jan 06, 2023, Chao Peng wrote: > > On Thu, Jan 05, 2023 at 11:23:01AM +0000, Jarkko Sakkinen wrote: > > > On Fri, Dec 02, 2022 at 02:13:41PM +0800, Chao Peng wrote: > > > > To make futur

Re: [PATCH v10 3/9] KVM: Extend the memslot to support fd-based private memory

2023-01-05 Thread Jarkko Sakkinen
On Fri, Dec 02, 2022 at 02:13:41PM +0800, Chao Peng wrote: > In memory encryption usage, guest memory may be encrypted with special > key and can be accessed only by the guest itself. We call such memory > private memory. It's valueless and sometimes can cause problem to allow > userspace to

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-12 Thread Jarkko Sakkinen
On Mon, Oct 10, 2022 at 04:25:07PM +0800, Chao Peng wrote: > On Sat, Oct 08, 2022 at 08:35:47PM +0300, Jarkko Sakkinen wrote: > > On Sat, Oct 08, 2022 at 07:15:17PM +0300, Jarkko Sakkinen wrote: > > > On Sat, Oct 08, 2022 at 12:54:32AM +0300, Jarkko Sakkinen wrote: > >

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2022 at 07:15:17PM +0300, Jarkko Sakkinen wrote: > On Sat, Oct 08, 2022 at 12:54:32AM +0300, Jarkko Sakkinen wrote: > > On Fri, Oct 07, 2022 at 02:58:54PM +, Sean Christopherson wrote: > > > On Fri, Oct 07, 2022, Jarkko Sakkinen wrote: > > > > On T

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-08 Thread Jarkko Sakkinen
On Sat, Oct 08, 2022 at 12:54:32AM +0300, Jarkko Sakkinen wrote: > On Fri, Oct 07, 2022 at 02:58:54PM +, Sean Christopherson wrote: > > On Fri, Oct 07, 2022, Jarkko Sakkinen wrote: > > > On Thu, Oct 06, 2022 at 03:34:58PM +, Sean Christopherson wrote: > > > >

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-07 Thread Jarkko Sakkinen
On Fri, Oct 07, 2022 at 02:58:54PM +, Sean Christopherson wrote: > On Fri, Oct 07, 2022, Jarkko Sakkinen wrote: > > On Thu, Oct 06, 2022 at 03:34:58PM +, Sean Christopherson wrote: > > > On Thu, Oct 06, 2022, Jarkko Sakkinen wrote: > > > > On Thu, Oct 06, 20

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-07 Thread Jarkko Sakkinen
On Thu, Oct 06, 2022 at 03:34:58PM +, Sean Christopherson wrote: > On Thu, Oct 06, 2022, Jarkko Sakkinen wrote: > > On Thu, Oct 06, 2022 at 05:58:03PM +0300, Jarkko Sakkinen wrote: > > > On Thu, Sep 15, 2022 at 10:29:07PM +0800, Chao Peng wrote: > > > > This new e

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-06 Thread Jarkko Sakkinen
On Thu, Oct 06, 2022 at 05:58:03PM +0300, Jarkko Sakkinen wrote: > On Thu, Sep 15, 2022 at 10:29:07PM +0800, Chao Peng wrote: > > This new extension, indicated by the new flag KVM_MEM_PRIVATE, adds two > > additional KVM memslot fields private_fd/private_offset to allow > >

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-06 Thread Jarkko Sakkinen
On Thu, Sep 15, 2022 at 10:29:07PM +0800, Chao Peng wrote: > This new extension, indicated by the new flag KVM_MEM_PRIVATE, adds two > additional KVM memslot fields private_fd/private_offset to allow > userspace to specify that guest private memory provided from the > private_fd and

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-05 Thread Jarkko Sakkinen
On Wed, Oct 05, 2022 at 04:04:05PM +0300, Jarkko Sakkinen wrote: > On Thu, Sep 15, 2022 at 10:29:07PM +0800, Chao Peng wrote: > > In memory encryption usage, guest memory may be encrypted with special > > key and can be accessed only by the VM itself. We call such memory > >

Re: [PATCH v8 2/8] KVM: Extend the memslot to support fd-based private memory

2022-10-05 Thread Jarkko Sakkinen
On Thu, Sep 15, 2022 at 10:29:07PM +0800, Chao Peng wrote: > In memory encryption usage, guest memory may be encrypted with special > key and can be accessed only by the VM itself. We call such memory > private memory. It's valueless and sometimes can cause problem to allow > userspace to access

Re: [PATCH v8 8/8] KVM: Enable and expose KVM_MEM_PRIVATE

2022-10-04 Thread Jarkko Sakkinen
On Thu, Sep 15, 2022 at 10:29:13PM +0800, Chao Peng wrote: > Expose KVM_MEM_PRIVATE and memslot fields private_fd/offset to > userspace. KVM will register/unregister private memslot to fd-based > memory backing store and response to invalidation event from > inaccessible_notifier to zap the

Re: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found

2022-01-16 Thread Jarkko Sakkinen
On Mon, Jan 17, 2022 at 02:09:00PM +0800, Yang Zhong wrote: > On Mon, Jan 17, 2022 at 04:53:45AM +0200, Jarkko Sakkinen wrote: > > On Tue, Nov 30, 2021 at 08:15:36PM +0800, Yang Zhong wrote: > > > On Thu, Nov 25, 2021 at 08:47:22PM +0800, Yang Zhong wrote: > > > > Hel

Re: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found

2022-01-16 Thread Jarkko Sakkinen
On Mon, Jan 17, 2022 at 04:53:48AM +0200, Jarkko Sakkinen wrote: > On Tue, Nov 30, 2021 at 08:15:36PM +0800, Yang Zhong wrote: > > On Thu, Nov 25, 2021 at 08:47:22PM +0800, Yang Zhong wrote: > > > Hello Paolo, > > > > > > Our customer used the Libvi

Re: unable to execute QEMU command 'qom-get': Property 'sgx-epc.unavailable-features' not found

2022-01-16 Thread Jarkko Sakkinen
On Tue, Nov 30, 2021 at 08:15:36PM +0800, Yang Zhong wrote: > On Thu, Nov 25, 2021 at 08:47:22PM +0800, Yang Zhong wrote: > > Hello Paolo, > > > > Our customer used the Libvirt XML to start a SGX VM, but failed. > > > > libvirt.libvirtError: internal error: unable to execute QEMU command > >

Re: [PATCH v4 22/33] hostmem-epc: Add the reset interface for EPC backend reset

2021-09-13 Thread Jarkko Sakkinen
On Mon, 2021-09-13 at 20:37 +, Sean Christopherson wrote: > On Mon, Sep 13, 2021, Jarkko Sakkinen wrote: > > On Fri, 2021-09-10 at 17:10 +0200, Paolo Bonzini wrote: > > > On 19/07/21 13:21, Yang Zhong wrote: > > > > +void sgx_memory_backend_reset(Host

Re: [PATCH v4 22/33] hostmem-epc: Add the reset interface for EPC backend reset

2021-09-13 Thread Jarkko Sakkinen
On Fri, 2021-09-10 at 17:10 +0200, Paolo Bonzini wrote: > On 19/07/21 13:21, Yang Zhong wrote: > > +void sgx_memory_backend_reset(HostMemoryBackend *backend, int fd, > > + Error **errp) > > +{ > > +MemoryRegion *mr = >mr; > > + > > +mr->enabled = false; > > + >

Re: [PATCH v4 00/33] Qemu SGX virtualization

2021-09-07 Thread Jarkko Sakkinen
On Tue, 2021-09-07 at 17:51 +0800, Yang Zhong wrote: > On Mon, Sep 06, 2021 at 03:13:08PM +0200, Paolo Bonzini wrote: > > Hi, > > > > the monitor patches did not pass the test-hmp qtest, and also they > > should be in target/i386/monitor.c (see other commands that were > > implemented there for

Re: [PATCH v3 00/33] Qemu SGX virtualization

2021-07-09 Thread Jarkko Sakkinen
On Fri, Jul 09, 2021 at 07:09:22PM +0800, Yang Zhong wrote: > Since Sean Christopherson has left Intel and i am responsible for Qemu SGX > upstream work. His @intel.com address will be bouncing and his new email( > sea...@google.com) is also in CC lists. > > This series is Qemu SGX virtualization