From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Juergen Gross <jgross@suse.com>, Jan Beulich <JBeulich@suse.com>
Cc: keir@xen.org, Ian.Campbell@citrix.com, tim@xen.org,
ian.jackson@eu.citrix.com, david.vrabel@citrix.com,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] x86: add feature flags to shared_info page
Date: Mon, 2 Mar 2015 15:50:38 +0000 [thread overview]
Message-ID: <54F486CE.2050300@citrix.com> (raw)
In-Reply-To: <54F4847F.9040101@suse.com>
On 02/03/15 15:40, Juergen Gross wrote:
> On 03/02/2015 04:22 PM, Andrew Cooper wrote:
>> On 02/03/15 15:11, Juergen Gross wrote:
>>> On 03/02/2015 02:56 PM, Jan Beulich wrote:
>>>>>>> On 02.03.15 at 14:44, <andrew.cooper3@citrix.com> wrote:
>>>>> On 02/03/15 13:15, Jan Beulich wrote:
>>>>>>>>> On 02.03.15 at 13:59, <"jgross@suse.com".non-mime.internet>
>>>>>>>>> wrote:
>>>>>>> In order to indicate the Xen tools capability to support the
>>>>>>> virtual
>>>>>>> mapped linear p2m list instead the 3 level mfn tree add feature
>>>>>>> flags
>>>>>>> to the shared_info page.
>>>>>> But why in the shared info page? They'd belong to start info or
>>>>>> should
>>>>>> be obtainable via XENVER_get_features.
>>>>>
>>>>> Furthermore in this case, the virtual linear p2m is purely a
>>>>> guest->toolstack feature/ABI.
>>>>>
>>>>> Xen deliberately has no knowledge of PV guest p2ms of either the
>>>>> 3level
>>>>> or linear variety.
>>>>>
>>>>> Is there genuinely no better interface than the hypervisor feature
>>>>> flags
>>>>> to indicate a piece of toolstack support?
>>>>
>>>> As Ian indicated in his reply, much depends on whether any other
>>>> mechanism would allow the information to be retrieved early enough
>>>> in the guest.
>>>
>>> Options that would work are, regarding the time the information is
>>> needed:
>>>
>>> - XENVER_get_features
>>> - start info
>>> - shared info
>>> - any (other) hypercall
>>>
>>> All other interfaces are available much too late.
>>>
>>> I think start info is the best option, as it is built by the tools for
>>> domUs and, as Jan already mentioned, would be a better place for the
>>> information as shared info.
>>
>> I concur. The start info seems like the best place for it.
>>
>>>
>>> The last remaining question: what to do regarding dom0? Here I see the
>>> following alternatives:
>>>
>>> - do nothing: the 3 level mfn tree is built even if it is not needed,
>>> wastes up to 2MB memory and might slow down dom0 (I doubt the slow
>>> down would be detectable)
>>> - set the flag based on a hypervisor boot parameter (not very nice)
>>> - throw the 3 level mfn tree away during boot as soon as the tools can
>>> tell dom0 to do so (requires a new interface)
>>>
>>> Any thoughts?
>>
>> The toolstack only needs to access the p2m when doing suspend/resume for
>> migrate, or a coredump. None of these are applicable to dom0, so I
>> think dom0 can get away with doing whatever it prefers in this regard.
>
> Are core dumps of dom0 really no issue? I think crash is using the 3
> level mfn tree today.
The only coredump of dom0 you are ever going to find is via /proc/vmcore
of a kdump environment, which is a Xen coredump with dom0 being just
another domain.
I have not used `crash` in this scenario, but it would be actively
making work for itself to attempt to piece dom0 back into a regular
image similar to `xl dump-core`, rather than simply using cr3 available
from struct vcpu.
So long as there is a kernel command line option available, the user who
sets up the crash environment can force it back into a state that their
tools expect.
~Andrew
prev parent reply other threads:[~2015-03-02 15:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 12:59 [PATCH] x86: add feature flags to shared_info page Juergen Gross
2015-03-02 13:15 ` Jan Beulich
2015-03-02 13:44 ` Andrew Cooper
2015-03-02 13:50 ` Ian Campbell
2015-03-02 13:56 ` Jan Beulich
2015-03-02 15:11 ` Juergen Gross
2015-03-02 15:22 ` Andrew Cooper
2015-03-02 15:40 ` Juergen Gross
2015-03-02 15:47 ` Jan Beulich
2015-03-02 15:50 ` Andrew Cooper [this message]
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=54F486CE.2050300@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=keir@xen.org \
--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.