From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <jbeulich@suse.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>,
"Tim Deegan" <tim@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>
Subject: Re: [PATCH v2 1/3] x86/shadow: move dm-mmio handling code in sh_page_fault()
Date: Fri, 24 Feb 2023 16:37:39 +0000 [thread overview]
Message-ID: <e3a644dd-19f4-5fae-212b-374a72caf380@citrix.com> (raw)
In-Reply-To: <1d4848eb-4b99-1492-45d1-c0ce2b0ae6a6@suse.com>
On 23/01/2023 3:08 pm, Jan Beulich wrote:
> On 23.01.2023 15:26, Jan Beulich wrote:
>> Do away with the partly mis-named "mmio" label there, which really is
>> only about emulated MMIO. Move the code to the place where the sole
>> "goto" was. Re-order steps slightly: Assertion first, perfc increment
>> outside of the locked region, and "gpa" calculation closer to the first
>> use of the variable. Also make the HVM conditional cover the entire
>> if(), as p2m_mmio_dm isn't applicable to PV; specifically get_gfn()
>> won't ever return this type for PV domains.
>>
>> Signed-off-by: Jan Beulich <jbeulich@suse.com>
>> ---
>> v2: New.
>>
>> --- a/xen/arch/x86/mm/shadow/multi.c
>> +++ b/xen/arch/x86/mm/shadow/multi.c
> I've sent a stale patch, I'm sorry. This further hunk is needed to keep
> !HVM builds working:
>
> @@ -2144,8 +2144,8 @@ static int cf_check sh_page_fault(
> gfn_t gfn = _gfn(0);
> mfn_t gmfn, sl1mfn = _mfn(0);
> shadow_l1e_t sl1e, *ptr_sl1e;
> - paddr_t gpa;
> #ifdef CONFIG_HVM
> + paddr_t gpa;
> struct sh_emulate_ctxt emul_ctxt;
> const struct x86_emulate_ops *emul_ops;
> int r;
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
next prev parent reply other threads:[~2023-02-24 16:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 14:25 [PATCH v2 0/3] x86/shadow: sh_page_fault() adjustments Jan Beulich
2023-01-23 14:26 ` [PATCH v2 1/3] x86/shadow: move dm-mmio handling code in sh_page_fault() Jan Beulich
2023-01-23 15:08 ` Jan Beulich
2023-02-24 16:37 ` Andrew Cooper [this message]
2023-01-23 14:27 ` [PATCH v2 2/3] x86/shadow: mark more of sh_page_fault() HVM-only Jan Beulich
2023-02-24 16:39 ` Andrew Cooper
2023-01-23 14:27 ` [PATCH v2 3/3] x86/shadow: drop dead code from HVM-only sh_page_fault() pieces Jan Beulich
2023-02-24 16:40 ` Andrew Cooper
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=e3a644dd-19f4-5fae-212b-374a72caf380@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=tim@xen.org \
--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.