WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Page fault for paravirtualization?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Page fault for paravirtualization?
From: Jun Koi <junkoi2004@xxxxxxxxx>
Date: Thu, 22 Jan 2009 23:55:34 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Jan 2009 06:55:59 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=V4ZLaVUfLn353J8sekWiqX+d9bmquMMidNiRYgYElww=; b=vs08vmJy/Cae+KLeEZ/Mjw7iPwu3rA3JYwbjeLMI7haX/2m5uyM8dhyY6fsIQUIh5x r/3dJuMIh6Ri5mSiOJfdf7dMu270qxOrjjsw2bDvtJaM851UBdxbbY/gFtPuGpybq2kM PLW9MLVurif1104hdDQAA8pZKYcHheb5FiqYs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nlUB3juoT+WHdAStEOOa+5V8ycpzSIqDBSj+8DigJiNM+D7iogwvFlXaZM62YDxXk+ LWWwWz7rbpwlyjweU6A5uWgOwaOOgV/yg0I2DXCQsLNdXXuoa9kMjDX5oT4ign/icKlD eL9APz7PUgl6cT7MPd4Kc64ktszLB9iVPdEbc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C59DF928.21B6A%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <fdaac4d50901220215g9ab003akb397e0a7a981adf@xxxxxxxxxxxxxx> <C59DF928.21B6A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Jan 22, 2009 at 7:21 PM, Keir Fraser <keir.fraser@xxxxxxxxxxxxx> wrote:
> We don't call paging_fault() for PV guests (unless doing live migration).
> Paging_mode_enabled() and paging_mode_external() will both return 0.
>

Oops I skip that code, so missed it. Thanks!

BTW, this code in xen/arch/x86/traps.c::fixup_page_fault() looks
suspicious: the VM_ASSIST check looks bogus. Is that dead code?

    if ( VM_ASSIST(d, VMASST_TYPE_writable_pagetables) &&
         guest_kernel_mode(v, regs) &&


Thanks,
Jun




> On 22/01/2009 10:15, "Jun Koi" <junkoi2004@xxxxxxxxx> wrote:
>
>> Hi,
>>
>> I am trying to understand how Xen handle pagefault for
>> paravirtialization VM on x86.
>>
>> In xen/arch/x86/traps.c, do_page_fault() calls fixup_page_fault(),
>> which calls paging_fault(). Then paging_fault() calls
>> v->arch.paging.mode->page_fault() in include/asm-x86/paging.h
>>
>> However, I dont see where in the code we assign v->arch.paging.mode
>> for PV domain. I grep around for many possible words, but didnt see
>> anything interesting.
>>
>> Anybody please help?
>>
>> Thanks a lot,
>> Jun
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel