From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: Xen-devel@lists.xensource.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V1]PVH: vcpu info placement, load CS selector, and remove debug printk.
Date: Fri, 21 Jun 2013 11:03:49 -0400 [thread overview]
Message-ID: <20130621150349.GA12341@phenom.dumpdata.com> (raw)
In-Reply-To: <1370460898-19988-1-git-send-email-mukesh.rathor@oracle.com>
On Wed, Jun 05, 2013 at 12:34:58PM -0700, Mukesh Rathor wrote:
> This patch addresses 3 things:
> - Resolve vcpu info placement fixme.
> - Load CS selector for PVH after switching to new gdt.
> - Remove printk in case of failure to map pnfs in p2m. This because qemu
> has lot of expected failures when mapping HVM pages.
This blows up when compiling under 32-bit:
make -f /home/konrad/linux/scripts/Makefile.build obj=drivers/cdrom
/home/konrad/linux/arch/x86/xen/enlighten.c: Assembler messages:
/home/konrad/linux/arch/x86/xen/enlighten.c:1429: Error: suffix or operands invalid for `push'
/home/konrad/linux/arch/x86/xen/enlighten.c:1430: Error: bad register name `%rip)'
/home/konrad/linux/arch/x86/xen/enlighten.c:1431: Error: suffix or operands invalid for `push'
/home/konrad/linux/arch/x86/xen/enlighten.c:1432: Error: suffix or operands invalid for `lret'
>
> Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
> ---
> arch/x86/xen/enlighten.c | 19 +++++++++++++++----
> arch/x86/xen/mmu.c | 3 ---
> 2 files changed, 15 insertions(+), 7 deletions(-)
>
> diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
> index a7ee39f..d55a578 100644
> --- a/arch/x86/xen/enlighten.c
> +++ b/arch/x86/xen/enlighten.c
> @@ -1083,14 +1083,12 @@ void xen_setup_shared_info(void)
> HYPERVISOR_shared_info =
> (struct shared_info *)__va(xen_start_info->shared_info);
>
> - /* PVH TBD/FIXME: vcpu info placement in phase 2 */
> - if (xen_pvh_domain())
> - return;
> -
> #ifndef CONFIG_SMP
> /* In UP this is as good a place as any to set up shared info */
> xen_setup_vcpu_info_placement();
> #endif
> + if (xen_pvh_domain())
> + return;
>
> xen_setup_mfn_list_list();
> }
> @@ -1103,6 +1101,10 @@ void xen_setup_vcpu_info_placement(void)
> for_each_possible_cpu(cpu)
> xen_vcpu_setup(cpu);
>
> + /* PVH always uses native IRQ ops */
> + if (xen_pvh_domain())
> + return;
> +
> /* xen_vcpu_setup managed to place the vcpu_info within the
> percpu area for all cpus, so make use of it */
> if (have_vcpu_info_placement) {
> @@ -1326,7 +1328,16 @@ static void __init xen_setup_stackprotector(void)
> {
> /* PVH TBD/FIXME: investigate setup_stack_canary_segment */
> if (xen_feature(XENFEAT_auto_translated_physmap)) {
> + unsigned long dummy;
> +
> switch_to_new_gdt(0);
> +
> + asm volatile ("pushq %0\n"
> + "leaq 1f(%%rip),%0\n"
> + "pushq %0\n"
> + "lretq\n"
> + "1:\n"
> + : "=&r" (dummy) : "0" (__KERNEL_CS));
> return;
> }
> pv_cpu_ops.write_gdt_entry = xen_write_gdt_entry_boot;
> diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
> index 31cc1ef..c104895 100644
> --- a/arch/x86/xen/mmu.c
> +++ b/arch/x86/xen/mmu.c
> @@ -2527,9 +2527,6 @@ static int pvh_add_to_xen_p2m(unsigned long lpfn, unsigned long fgmfn,
> set_xen_guest_handle(xatp.errs, &err);
>
> rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap_range, &xatp);
> - if (rc || err)
> - pr_warn("d0: Failed to map pfn (0x%lx) to mfn (0x%lx) rc:%d:%d\n",
> - lpfn, fgmfn, rc, err);
> return rc;
> }
>
> --
> 1.7.2.3
>
prev parent reply other threads:[~2013-06-21 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 19:34 [PATCH V1]PVH: vcpu info placement, load CS selector, and remove debug printk Mukesh Rathor
2013-06-21 15:03 ` Konrad Rzeszutek Wilk [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=20130621150349.GA12341@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Xen-devel@lists.xensource.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mukesh.rathor@oracle.com \
/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).