| To: | Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [Xen-devel] new hypercall implementation question |
| From: | Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
| Date: | 2009年7月23日 14:26:15 -0700 |
| Cc: | "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx> |
| Delivery-date: | 2009年7月23日 14:26:45 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <0e076676-cb5a-44e9-9e4b-90a70a45226f@default > |
| 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: | <0e076676-cb5a-44e9-9e4b-90a70a45226f@default > |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 07/23/09 07:31, Dan Magenheimer wrote: > Is it safe to pass three guest virtual addresses via a hypercall > to Xen and expect Xen to safely copy data (two scalars and one > array of pagesize-bytes... not necessarily aligned on a page > boundary) back to the guest, or do I need to do something fancy > to avoid weird corner cases, e.g. to ensure restartabililty > in case of guest page fault? > > This is a privileged-only hypercall used only as part of > save/restore/live-migrate (for tmem) if that is relevant. > For x86 its OK to pass kernel vaddrs to Xen and have it interpret them with the current pagetable. There should be no pagefaults, or rather, the hypercall will fail with EFAULT. I think ia64 has problems with anything other than physical addresses being passed, and has to do all that handle stuff to convert. J _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Re[8]: [Xen-devel] Unable to Configure Xen Dom 0 in Jeremy's PVOPS Kernel , Teo En Ming |
|---|---|
| Next by Date: | Re: [Xen-devel] Re: [Xen-users] Xen viridian support/features , Jeremy Fitzhardinge |
| Previous by Thread: | [Xen-devel] new hypercall implementation question , Dan Magenheimer |
| Next by Thread: | RE: [Xen-devel] new hypercall implementation question , Dan Magenheimer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |