All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: xen-devel@lists.xen.org
Cc: elena.ufimtseva@oracle.com, Keir Fraser <keir@xen.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	tim@xen.org, Jan Beulich <jbeulich@suse.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	roger.pau@citrix.com
Subject: [PATCH 3/9] x86/pvh: Properly initialize PVH guest's CR3
Date: Fri, 19 Jun 2015 23:09:26 -0400	[thread overview]
Message-ID: <1434769773-5157-4-git-send-email-boris.ostrovsky@oracle.com> (raw)
In-Reply-To: <1434769773-5157-1-git-send-email-boris.ostrovsky@oracle.com>

.. based on whether the guest is 32- or 64-bit

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <jbeulich@suse.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>

---
 xen/arch/x86/domain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c
index c7ef1e6..ba28f38 100644
--- a/xen/arch/x86/domain.c
+++ b/xen/arch/x86/domain.c
@@ -828,7 +828,7 @@ int arch_set_info_guest(
         cr3_page = get_page_from_gfn(d, cr3_gfn, NULL, P2M_ALLOC);
 
         v->arch.cr3 = page_to_maddr(cr3_page);
-        v->arch.hvm_vcpu.guest_cr[3] = c.nat->ctrlreg[3];
+        v->arch.hvm_vcpu.guest_cr[3] = c(ctrlreg[3]);
         v->arch.guest_table = pagetable_from_page(cr3_page);
 
         ASSERT(paging_mode_enabled(d));
-- 
1.7.1

  parent reply	other threads:[~2015-06-20  3:09 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 ` Boris Ostrovsky [this message]
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
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=1434769773-5157-4-git-send-email-boris.ostrovsky@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=elena.ufimtseva@oracle.com \
    --cc=jbeulich@suse.com \
    --cc=keir@xen.org \
    --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.