All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: elena.ufimtseva@oracle.com, tim@xen.org,
	Kevin Tian <kevin.tian@intel.com>, Keir Fraser <keir@xen.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Eddie Dong <eddie.dong@intel.com>,
	xen-devel@lists.xen.org, Jun Nakajima <jun.nakajima@intel.com>,
	roger.pau@citrix.com
Subject: Re: [PATCH 5/9] x86/pvh: Set PVH guest's mode in XEN_DOMCTL_set_address_size
Date: Wed, 24 Jun 2015 08:57:31 +0100	[thread overview]
Message-ID: <558A7F0B0200007800088B52@mail.emea.novell.com> (raw)
In-Reply-To: <558A1BA1.9060600@oracle.com>

>>> On 24.06.15 at 04:53, <boris.ostrovsky@oracle.com> wrote:
> On 06/23/2015 09:22 AM, Jan Beulich wrote:
>>
>>> --- a/xen/arch/x86/hvm/hvm.c
>>> +++ b/xen/arch/x86/hvm/hvm.c
>>> @@ -2320,12 +2320,7 @@ int hvm_vcpu_initialise(struct vcpu *v)
>>>       v->arch.hvm_vcpu.inject_trap.vector = -1;
>>>   
>>>       if ( is_pvh_domain(d) )
>>> -    {
>>> -        v->arch.hvm_vcpu.hcall_64bit = 1;    /* PVH 32bitfixme. */
>>> -        /* This is for hvm_long_mode_enabled(v). */
>>> -        v->arch.hvm_vcpu.guest_efer = EFER_LMA | EFER_LME;
>>>           return 0;
>>> -    }
>> With this removed, is there any guarantee that hvm_set_mode()
>> will be called for each vCPU?
> 
> IIUIC, toolstack is required to call XEN_DOMCTL_set_address_size which 
> results in a call to switch_compat/native(), which loop over all VCPUs, 
> calling set_mode.

I don't recall this being a strict requirement. I think a PV 64-bit
guest would start fine without.

Jan

  reply	other threads:[~2015-06-24  7:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-20  3:09 [PATCH 0/9] 32-bit domU PVH support Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 1/9] x86/pvh: Don't test 64b-only vcpu_guest_context's fields Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 2/9] x86/pvh: Don't copy to/from trap_ctxt for 32b PVH guests Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 3/9] x86/pvh: Properly initialize PVH guest's CR3 Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 4/9] x86/compat: Manage argument translation area separately from l4 Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 5/9] x86/pvh: Set PVH guest's mode in XEN_DOMCTL_set_address_size Boris Ostrovsky
2015-06-23 13:22   ` Jan Beulich
2015-06-24  2:53     ` Boris Ostrovsky
2015-06-24  7:57       ` Jan Beulich [this message]
2015-06-24 11:42         ` Boris Ostrovsky
2015-06-24 12:10           ` Jan Beulich
2015-06-24 16:21             ` Boris Ostrovsky
2015-06-25  7:37               ` Jan Beulich
2015-06-20  3:09 ` [PATCH 6/9] x86/pvh: Properly set HYPERVISOR_COMPAT_VIRT_START for PVH guests Boris Ostrovsky
2015-06-23 13:25   ` Jan Beulich
2015-06-24  2:55     ` Boris Ostrovsky
2015-06-20  3:09 ` [PATCH 7/9] x86/pvh: Handle hypercalls for 32b " Boris Ostrovsky
2015-06-23 13:35   ` Jan Beulich
2015-06-20  3:09 ` [PATCH 8/9] x86/pvh: Don't try to get l4 table for PVH guests in vcpu_destroy_pagetables() Boris Ostrovsky
2015-06-23 13:38   ` Jan Beulich
2015-06-24  3:05     ` Boris Ostrovsky
2015-06-24  7:58       ` Jan Beulich
2015-06-20  3:09 ` [PATCH 9/9] libxc/x86/pvh: Allow creation of 32b PVH guests Boris Ostrovsky
2015-06-22  8:37   ` Ian Campbell
2015-06-20  3:09 ` [PATCH 1/9] x86/pvh: Don't test 64b-only vcpu_guest_context's fields Boris Ostrovsky

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=558A7F0B0200007800088B52@mail.emea.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=eddie.dong@intel.com \
    --cc=elena.ufimtseva@oracle.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=roger.pau@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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.