From: Zheyun Shen <szy0127@sjtu.edu.cn>
To: Jason Wang <jasowang@redhat.com>, mst <mst@redhat.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
virtualization <virtualization@lists.linux.dev>,
david <david@redhat.com>, xuanzhuo <xuanzhuo@linux.alibaba.com>
Subject: Re: [PATCH] driver/virtio: Add Memory Balloon Support for SEV/SEV-ES
Date: Thu, 11 Jan 2024 14:35:08 +0800 (CST) [thread overview]
Message-ID: <1824181559.1228150.1704954908335.JavaMail.zimbra@sjtu.edu.cn> (raw)
On Wed, Jan 10, 2024 at 4:01 PM Michael S. Tsirkin <mst@redhat.com> wrote:
> Sorry I don't get what you are saying at all.
> Please format the commit log along the following lines:
> Currently .....
> This is bad because ...
> To fix ...
> As a result ...
> No way I am going to spead CONFIG_AMD_MEM_ENCRYPT all over the place
> like this.
I will try to find out a solution with fewer macros and send patch V2
with a more perspicuous commit log.
On Thur, Jan 11, 2024 at 11:20 AM Jason Wang <jasowang@redhat.com> wrote:
> > For now, SEV pins guest's memory to avoid swapping or
> > moving ciphertext, but leading to the inhibition of
> > Memory Ballooning.
> >
> > In Memory Ballooning, only guest's free pages will be relocated
> > in balloon inflation and deflation, so the difference of plaintext
> > doesn't matter to guest.
> This seems only true if the page is zeroed, is this true here?
Sorry, I cannot figure out why the pages should be zeroed. I think
both host kernel and guest kernel assume that the pages are not
zeroed and will use kzalloc or manually zero them in real applications,
which is same as non-SEV environments.
I have tested in SEV-ES, reclaiming memory by balloon inflation and reuse
them after balloon deflation both works well with the patch. Hypervisor
can normally give the reclaimed memory from one CVM to another, or give
back to the origin CVM.
next reply other threads:[~2024-01-11 6:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 6:35 Zheyun Shen [this message]
2024-01-11 8:22 ` [PATCH] driver/virtio: Add Memory Balloon Support for SEV/SEV-ES David Hildenbrand
-- strict thread matches above, loose matches on Subject: below --
2024-01-10 6:22 Zheyun Shen
2024-01-10 8:01 ` Michael S. Tsirkin
2024-01-11 3:20 ` Jason Wang
2024-01-11 8:35 ` David Hildenbrand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1824181559.1228150.1704954908335.JavaMail.zimbra@sjtu.edu.cn \
--to=szy0127@sjtu.edu.cn \
--cc=david@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).