[Qemu-devel] [PATCH 3/3] sev: Change SEV to use EncryptedRAMBlock Notifier

2019-04-26 Thread Natarajan, Janakarajan
The EncryptedRAMBlock Notifier lets SEV know which guest RAM pages will contain encrypted guest data. Using this notifier lets SEV skip pinning pages that do not contain encrypted data. Signed-off-by: Janakarajan Natarajan --- target/i386/sev.c | 25 - 1 file changed, 8

[Qemu-devel] [PATCH 0/3] Add RAM block encrypted notifier

2019-04-26 Thread Natarajan, Janakarajan
Currently, the SEV guest launch registers to a RAM block notifier. When called, we issue KVM_MEMORY_ENCRYPT_{REG,UNREG}_REGION ioctl to register the memory with the KVM driver. These ioctls should be called only for the region which contains the encrypted data but the RAM block notifier gets called

[Qemu-devel] [PATCH 1/3] ram-encrypted-notifier: Introduce a RAM block encrypted notifier

2019-04-26 Thread Natarajan, Janakarajan
A client can register to this notifier to know whether the newly added or removed memory region is marked as encrypted. This information is needed for the SEV guest launch. In SEV guest, some memory regions may contain encrypted data (e.g guest RAM). The memory region which contains the encrypted d

[Qemu-devel] [PATCH 2/3] hw: Notify listeners about guest pages which contain encrypted data

2019-04-26 Thread Natarajan, Janakarajan
PC ram, pflash unit 0 rom and pc-dimm memory hotplug ram blocks need to be encrypted. Also, notify listeners when freeing a MemoryRegion if it has encrypted data. Signed-off-by: Janakarajan Natarajan --- exec.c | 5 + hw/i386/pc.c | 1 + hw/i386/pc_sysfw.c | 2

Re: [Qemu-devel] [PATCH 1/3] ram-encrypted-notifier: Introduce a RAM block encrypted notifier

2019-05-16 Thread Natarajan, Janakarajan
On 5/3/2019 1:25 PM, Eduardo Habkost wrote: > [CAUTION: External Email] > > On Fri, Apr 26, 2019 at 02:32:51PM +, Janakarajan Natarajan wrote: >> On 4/26/19 7:29 AM, Igor Mammedov wrote: > [...] diff --git a/numa.c b/numa.c index 3875e1efda..08601366c5 100644 --- a/numa.c ++