From: Andrew Cooper <amc96@srcf.net>
To: Jan Beulich <jbeulich@suse.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
"Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>,
"George Dunlap" <george.dunlap@citrix.com>
Subject: Re: [PATCH 2/4] x86/PoD: HVM guests can't pin their pages
Date: Wed, 1 Dec 2021 12:22:18 +0000 [thread overview]
Message-ID: <bd4d66b3-a388-b3cf-2284-91c43bc3d99d@srcf.net> (raw)
In-Reply-To: <0ec2eb9c-a4b9-65c3-3751-3a7fb9b760c1@suse.com>
On 01/12/2021 10:53, Jan Beulich wrote:
> Pinning is a PV concept, used there only for page table pages.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Perhaps this is a leftover from autotranslate mode? That was doing some
very HVM-like things for PV guests.
> ---
> I'm actually inclined to hide _PGT_pinned in !HVM builds; the downside
> of doing so is some new #ifdef-ary which would need adding.
Judging by the current users, I doubt it is worth it, although folding
this delta wouldn't go amiss.
diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h
index cb9052749963..e5f63daa1a71 100644
--- a/xen/include/asm-x86/mm.h
+++ b/xen/include/asm-x86/mm.h
@@ -36,7 +36,7 @@
/* Page is locked? */
#define _PGT_locked PG_shift(4)
#define PGT_locked PG_mask(1, 4)
- /* Owning guest has pinned this page to its current type? */
+ /* Owning guest has pinned this page to its current type? PV only */
#define _PGT_pinned PG_shift(5)
#define PGT_pinned PG_mask(1, 5)
/* Has this page been validated for use as its current type? */
~Andrew
next prev parent reply other threads:[~2021-12-01 12:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-01 10:51 [PATCH 0/4] x86/mm: address observations made while working on XSA-388 Jan Beulich
2021-12-01 10:53 ` [PATCH 1/4] x86/PoD: simplify / improve p2m_pod_cache_add() Jan Beulich
2021-12-01 12:01 ` Andrew Cooper
2021-12-02 9:41 ` Jan Beulich
2021-12-01 10:53 ` [PATCH 2/4] x86/PoD: HVM guests can't pin their pages Jan Beulich
2021-12-01 12:22 ` Andrew Cooper [this message]
2021-12-01 10:54 ` [PATCH 3/4] x86/altp2m: p2m_altp2m_get_or_propagate() should honor present page order Jan Beulich
2021-12-01 12:44 ` Andrew Cooper
2021-12-02 9:55 ` Jan Beulich
2021-12-01 10:55 ` [PATCH RFC 4/4] x86/altp2m: p2m_altp2m_propagate_change() " Jan Beulich
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=bd4d66b3-a388-b3cf-2284-91c43bc3d99d@srcf.net \
--to=amc96@srcf.net \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.