Re: [PATCH 1/2] mm, treewide: Rename kzfree() to kfree_sensitive()

2020-04-13 Thread David Rientjes via Virtualization
On Mon, 13 Apr 2020, Waiman Long wrote: > As said by Linus: > > A symmetric naming is only helpful if it implies symmetries in use. > Otherwise it's actively misleading. > > In "kzalloc()", the z is meaningful and an important part of what the > caller wants. > > In "kzfree()", the z

Re: [PATCH 62/70] x86/kvm: Add KVM specific VMMCALL handling under SEV-ES

2020-03-20 Thread David Rientjes via Virtualization
On Thu, 19 Mar 2020, Joerg Roedel wrote: > From: Tom Lendacky > > Implement the callbacks to copy the processor state required by KVM to > the GHCB. > > Signed-off-by: Tom Lendacky > [ jroe...@suse.de: - Split out of a larger patch >- Adapt to different callback functions

Re: [PATCH 18/70] x86/boot/compressed/64: Add stage1 #VC handler

2020-03-20 Thread David Rientjes via Virtualization
On Thu, 19 Mar 2020, Joerg Roedel wrote: > diff --git a/arch/x86/include/asm/sev-es.h b/arch/x86/include/asm/sev-es.h > new file mode 100644 > index ..f524b40aef07 > --- /dev/null > +++ b/arch/x86/include/asm/sev-es.h > @@ -0,0 +1,45 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/*

Re: [PATCH 23/70] x86/sev-es: Add support for handling IOIO exceptions

2020-03-20 Thread David Rientjes via Virtualization
On Thu, 19 Mar 2020, Joerg Roedel wrote: > From: Tom Lendacky > > Add support for decoding and handling #VC exceptions for IOIO events. > > Signed-off-by: Tom Lendacky > [ jroe...@suse.de: Adapted code to #VC handling framework ] > Co-developed-by: Joerg Roedel > Signed-off-by: Joerg Roedel

Re: [PATCH 21/70] x86/boot/compressed/64: Add function to map a page unencrypted

2020-03-20 Thread David Rientjes via Virtualization
On Thu, 19 Mar 2020, Joerg Roedel wrote: > From: Joerg Roedel > > This function is needed to map the GHCB for SEV-ES guests. The GHCB is > used for communication with the hypervisor, so its content must not be > encrypted. > > Signed-off-by: Joerg Roedel > --- >

Re: [PATCH v3] virtio-balloon: Switch back to OOM handler for VIRTIO_BALLOON_F_DEFLATE_ON_OOM

2020-03-10 Thread David Rientjes via Virtualization
On Tue, 10 Mar 2020, David Hildenbrand wrote: > Commit 71994620bb25 ("virtio_balloon: replace oom notifier with shrinker") > changed the behavior when deflation happens automatically. Instead of > deflating when called by the OOM handler, the shrinker is used. > > However, the balloon is not

Re: Balloon pressuring page cache

2020-02-01 Thread David Rientjes via Virtualization
On Wed, 29 Jan 2020, Tyler Sanderson wrote: > > > A primary advantage of virtio balloon over other memory reclaim > > > mechanisms is that it can pressure the guest's page cache into shrinking. > > > > > > However, since the balloon driver changed to using the shrinker API > > > < > >