From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Tim Deegan <tim@xen.org>, Jan Beulich <JBeulich@suse.com>
Cc: AndrewCooper <andrew.cooper3@citrix.com>,
ian.jackson@eu.citrix.com,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [xen-unstable test] 56456: regressions - FAIL
Date: Mon, 18 May 2015 12:50:50 +0200 [thread overview]
Message-ID: <5559C40A.2020106@citrix.com> (raw)
In-Reply-To: <20150518101759.GA94471@deinos.phlegethon.org>
El 18/05/15 a les 12.17, Tim Deegan ha escrit:
> At 09:34 +0100 on 18 May (1431941676), Jan Beulich wrote:
>>>>> On 16.05.15 at 13:45, <roger.pau@citrix.com> wrote:
>>> El 16/05/15 a les 10.51, osstest service user ha escrit:
>>>> flight 56456 xen-unstable real [real]
>>>> http://logs.test-lab.xenproject.org/osstest/logs/56456/
>>>>
>>>> Regressions :-(
>>>
>>> This is my fault, paging_gva_to_gfn cannot be used to translate a PV
>>> guest VA to a GFN. The patch above restores the previous path for PV
>>> callers.
>>
>> While Tim would have the final say, I certainly would prefer to revert
>> the offending patch and then apply a correct new version in its stead
>> in this case (where the fix is not a simple, few lines change).
>
> I would be OK with a follow-up fix here, but I'm not convinced that
> this is it.
>
> In particular, paging_mode_enabled() should be true for any PV domain
> that's in log-dirty mode, so presumably the failure is only for lgd
> ops on VMs that don't have lgd enabled. So maybe we can either:
> - return an error for that case (but we'd want to understand how we
> got there first); or
The error is caused because we are trying to use paging_gva_to_gfn
against a Dom0 VA, which is a PV guest.
gva_to_gfn is set to sh_gva_to_gfn for a PV Dom0, but calling
vtlb_lookup against a PV guest crashes Xen because the paging structures
are not populated.
> - have map_dirty_bitmap() DTRT, with something like access_ok() +
> a linear-pagetable lookup to find the frame.
That was my first intention, but AFAICT we have no function in tree to
resolve a PV guest VA into a GFN/MFN. The closest thing I could find was
using guest_walk_tables + guest_walk_to_gfn in order to obtain the gfn.
Should I send a patch to introduce a pv_gva_to_gfn function based on that?
Thanks, Roger.
next prev parent reply other threads:[~2015-05-18 11:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-16 8:51 [xen-unstable test] 56456: regressions - FAIL osstest service user
2015-05-16 11:45 ` Roger Pau Monné
2015-05-18 8:34 ` Jan Beulich
2015-05-18 10:17 ` Tim Deegan
2015-05-18 10:36 ` Jan Beulich
2015-05-18 10:50 ` Roger Pau Monné [this message]
2015-05-18 11:00 ` Tim Deegan
2015-05-18 11:19 ` Jan Beulich
2015-05-19 10:20 ` Tim Deegan
2015-05-19 10:29 ` Jan Beulich
2015-05-19 15:07 ` Roger Pau Monné
2015-05-20 8:58 ` Roger Pau Monné
2015-05-20 9:12 ` Jan Beulich
2015-05-20 9:43 ` Tim Deegan
2015-05-20 9:55 ` Roger Pau Monné
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=5559C40A.2020106@citrix.com \
--to=roger.pau@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=tim@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.