From: "Jan Beulich" <JBeulich@suse.com>
To: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: xen-devel@lists.xenproject.org, Andrew Jones <drjones@redhat.com>,
David Vrabel <david.vrabel@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH RFCv2 1/1] Introduce VCPUOP_reset_vcpu_info
Date: Fri, 15 Aug 2014 16:07:06 +0100 [thread overview]
Message-ID: <53EE302A02000078000BA8DF@mail.emea.novell.com> (raw)
In-Reply-To: <8761hu13hf.fsf@vitty.brq.redhat.com>
>>> On 15.08.14 at 11:55, <vkuznets@redhat.com> wrote:
> "Jan Beulich" <JBeulich@suse.com> writes:
>>>>> On 14.08.14 at 10:28, <vkuznets@redhat.com> wrote:
>>> --- a/xen/include/public/vcpu.h
>>> +++ b/xen/include/public/vcpu.h
>>> @@ -227,6 +227,20 @@ struct vcpu_register_time_memory_area {
>>> typedef struct vcpu_register_time_memory_area vcpu_register_time_memory_area_t;
>>> DEFINE_XEN_GUEST_HANDLE(vcpu_register_time_memory_area_t);
>>>
>>> +/*
>>> + * Reset all of the vcpu_info information from their previous location
>>> + * to the default one used at bootup. The following prerequisites should be met:
>>> + * 1. VCPU should be switched off. This means the operation is unsupported for
>>> + * boot VCPU.
>>
>> Boot vCPU? I don't think this should be written more restrictively
>> than it is. Just the one CPU doing the resets can't be resetting
>> itself. With some effort I think one could even get a reset for all
>> of them working.
>
> I thought about something simillar to what we have in map_vcpu_info:
> allow the operation for all offline VCPUs and the current one. But then
> I realized that boot VCPU doesn't perform VCPUOP_register_vcpu_info in
> current linux kernel so there is no need to unregister atm..
But you always ought to remember that when your changing
hypervisor code or the public interface (including comments) that
nothing here should b Linux-centric, i.e. you want to describe
abstract behavior here, not how Linux might be making use of it.
Jan
prev parent reply other threads:[~2014-08-15 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 8:28 [PATCH RFCv2 0/1] Introduce VCPUOP_reset_vcpu_info Vitaly Kuznetsov
2014-08-14 8:28 ` [PATCH RFCv2 1/1] " Vitaly Kuznetsov
2014-08-14 23:25 ` Jan Beulich
2014-08-15 9:55 ` Vitaly Kuznetsov
2014-08-15 15:07 ` Jan Beulich [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=53EE302A02000078000BA8DF@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=drjones@redhat.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=vkuznets@redhat.com \
--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 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).