All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Andrew Jones <drjones@redhat.com>,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH RFC 0/1] Introduce VCPUOP_reset_vcpu_info
Date: Wed, 6 Aug 2014 11:03:07 -0400	[thread overview]
Message-ID: <20140806150307.GC14744@laptop.dumpdata.com> (raw)
In-Reply-To: <53E25DE10200007800029C9C@mail.emea.novell.com>

On Wed, Aug 06, 2014 at 03:54:57PM +0100, Jan Beulich wrote:
> >>> On 06.08.14 at 16:49, <konrad.wilk@oracle.com> wrote:
> > On Wed, Aug 06, 2014 at 03:09:43PM +0100, Jan Beulich wrote:
> >> Just for my understanding of why exactly you need the new operation:
> >> Why is this being done here, when you already do the reset in the
> >> cpu-die/shutdown paths? And why not for CPU 0?
> >> 
> >> Furthermore, what is the state of vCPU-s beyond 31 going to be after
> >> they got their vCPU info reset? They won't have any other area as
> >> fallback. Yet I don't think you can now and forever guarantee that
> >> native_cpu_die() won't do anything requiring that structure.
> > 
> > native_cpu_die just spins around in an infinite halt sequence. The
> > call could be replaced with the VCPU_down call instead, something like:
> > 
> > 	if (xen_teardown_cpu(cpu) == -ENOSYS)
> > 		native_cpu_die();
> > 	
> > 	(void)HYPERVISOR_vcpu_op(VCPUP_down, cpu, NULL);
> 
> But the suggested new hypercall requires the vCPU to be down in
> order to allow the reset...

Duh! I wrote it and I should have remember that :-) It is RFC for a reason!
> 
> Jan
> 

  reply	other threads:[~2014-08-06 15:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-06 13:08 [PATCH RFC 0/1] Introduce VCPUOP_reset_vcpu_info Vitaly Kuznetsov
2014-08-06 13:08 ` [PATCH RFC 1/1] " Vitaly Kuznetsov
2014-08-06 14:36   ` Jan Beulich
2014-08-06 14:09 ` [PATCH RFC 0/1] " Jan Beulich
2014-08-06 14:49   ` Konrad Rzeszutek Wilk
2014-08-06 14:54     ` Jan Beulich
2014-08-06 15:03       ` Konrad Rzeszutek Wilk [this message]
2014-08-06 14:51   ` Konrad Rzeszutek Wilk
2014-08-06 15:00     ` Jan Beulich
2014-08-06 15:02       ` Konrad Rzeszutek Wilk
2014-08-06 15:38         ` Jan Beulich
2014-08-06 15:03   ` Vitaly Kuznetsov
2014-08-06 15:43     ` Jan Beulich
2014-08-07 11:41       ` Vitaly Kuznetsov
2014-08-07 11:48         ` Jan Beulich
2014-08-07 11:54           ` Vitaly Kuznetsov

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=20140806150307.GC14744@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=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 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.