[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-ia64-devel] [Query] Regarding dtlb_miss Handler


  • To: tgingold@xxxxxxx
  • From: jeet <jeet_sat12@xxxxxxxxxxx>
  • Date: Tue, 24 Apr 2007 12:23:33 +0530 (IST)
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 23 Apr 2007 23:51:58 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=m9wtG70a+tGNUd8cB0OkSWJwWIkrwU0jPjQ2nn/TFXNXVkigTU6lhCDJjWhmPbNm8U4tx61R8ojjFMuRs7JujWkyWN+c1EJQjSemprwfoqi/le5eKYB7NsG/cGZdml0uB01DFOuizw1Q2tVJXaeJME15lYgtBj2kM1PJWyd51lA=;
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>

Hi Tristan

Thanks for you reply. Really I had got confused with vm thing

Now it is clear to me that all Interrupt are intercept by VMM (vm=0) 
But state of bit IPSR.vm determines when interrupt occurred whether Guest was 
running or VMM was running.

Thanks
~Jeet

----- Original Message ----
From: "tgingold@xxxxxxx" <tgingold@xxxxxxx>
To: jeet <jeet_sat12@xxxxxxxxxxx>
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Sent: Monday, 23 April, 2007 9:05:22 PM
Subject: Re: [Xen-ia64-devel] [Query] Regarding dtlb_miss Handler

Quoting jeet <jeet_sat12@xxxxxxxxxxx>:

> Hi All
>
> I am trying to understand dtlb_miss handler for VMX domain, which
> would be called when VHPT walker could not find the entry in VHPT.
>
> I have some queries
>
> In following lines, check is made for vm bit in PSR when interrupt occur
Note: this is in fact ipsr, ie the PSR when the fault occured.

> Is this means, if currently guest is running(vm=1) and flow would go to line
> 225 and
No, if guest *was* running.  During the interruption handling, vm is 0.

> otherwise it would jump to vmx_alt_dtlb_miss_1(vm=0),  when this case would
> occur?
This interrupt can also happen during hypervisor execution.

> xen-3.0.4_1-src/xen/arch/ia64/vmx/vmx_ivt.S
>
> line216 ENTRY(vmx_dtlb_miss)
> ..
>
> ..
> line223        tbit.z p6,p7=r29,IA64_PSR_VM_BIT;
> line224     (p6)br.sptk vmx_alt_dtlb_miss_1
> line 225      mov r16 = cr.ifa
>
> So would code after line 225 be executed when guest is running?
> if so the executing the privilege instructions itc.d (line268) would cause
> virtualization fault?
> which would give controls to virtualization fault handler?
>
> Is my understanding is correct? if not please if anyone could explain this,
> that would be great help
You are slightly confused: this code is always run with vm=0 but the code
interrupted may be either guest code or hypervisor code.  Hence the test.

Tristan.





      Send a FREE SMS to your friend's mobile from Yahoo! Messenger. Get it now 
at http://in.messenger.yahoo.com/

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.