Re: [PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption status is changed

2019-08-29 Thread Thomas Gleixner
On Thu, 29 Aug 2019, Thomas Gleixner wrote: > On Thu, 29 Aug 2019, Borislav Petkov wrote: > > > On Wed, Jul 10, 2019 at 08:13:11PM +, Singh, Brijesh wrote: > > > @@ -2060,6 +2067,14 @@ static int __set_memory_enc_dec(unsigned long > > > addr, int numpages, bool enc) > > >*/ > > >

Re: [PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption status is changed

2019-08-29 Thread Thomas Gleixner
On Thu, 29 Aug 2019, Borislav Petkov wrote: > On Wed, Jul 10, 2019 at 08:13:11PM +, Singh, Brijesh wrote: > > @@ -2060,6 +2067,14 @@ static int __set_memory_enc_dec(unsigned long addr, > > int numpages, bool enc) > > */ > > cpa_flush(, 0); > > > > + /* > > +* When SEV is

Re: [PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption status is changed

2019-08-29 Thread Borislav Petkov
On Wed, Jul 10, 2019 at 08:13:11PM +, Singh, Brijesh wrote: > @@ -2060,6 +2067,14 @@ static int __set_memory_enc_dec(unsigned long addr, > int numpages, bool enc) >*/ > cpa_flush(, 0); > > + /* > + * When SEV is active, notify hypervisor that a given memory range is

Re: [PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption status is changed

2019-08-29 Thread Borislav Petkov
On Wed, Jul 10, 2019 at 08:13:11PM +, Singh, Brijesh wrote: > Subject: Re: [PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption > status is changed Subject prefix: "x86/mm: Invoke ..." git log would usually show you how the prefixing should look like. > Invo

[PATCH v3 10/11] mm: x86: Invoke hypercall when page encryption status is changed

2019-07-10 Thread Singh, Brijesh
Invoke a hypercall when a memory region is changed from encrypted -> decrypted and vice versa. Hypervisor need to know the page encryption status during the guest migration. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: