Re: [PATCH V10 14/14] xen/pvh: vcpu info placement, load CS selector,and remove debug printk.

From: David Vrabel
Date: Fri Dec 13 2013 - 06:35:05 EST


On 13/12/13 02:10, Konrad Rzeszutek Wilk wrote:
> From: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
>
> 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.
[...]
> @@ -1423,7 +1425,20 @@ 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);
> +#ifdef CONFIG_X86_64
> + asm volatile ("pushq %0\n"
> + "leaq 1f(%%rip),%0\n"
> + "pushq %0\n"
> + "lretq\n"
> + "1:\n"
> + : "=&r" (dummy) : "0" (__KERNEL_CS));

Why does CS need to be reloaded here?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/