* [PATCH][1/6] add a hypercall number for virtual device in unmodified guest
@ 2005-09-05 10:18 Xiaofeng Ling
0 siblings, 0 replies; 3+ messages in thread
From: Xiaofeng Ling @ 2005-09-05 10:18 UTC (permalink / raw)
To: Ian Pratt, Keir Fraser; +Cc: xen-devel
add a hypercall number for virtual device in unmodified guest
There are 6 patches for para-driver support in vmx guest. This is the
first one.
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
diff -r 287d36b46fa3 xen/arch/x86/x86_32/entry.S
--- a/xen/arch/x86/x86_32/entry.S Tue Aug 30 20:36:49 2005
+++ b/xen/arch/x86/x86_32/entry.S Fri Sep 2 22:46:13 2005
@@ -812,6 +812,7 @@
.long do_ni_hypercall /* 25 */
.long do_mmuext_op
.long do_acm_op /* 27 */
+ .long do_virtual_device_op /* virutal device op for VMX */
.rept NR_hypercalls-((.-hypercall_table)/4)
.long do_ni_hypercall
.endr
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH][1/6] add a hypercall number for virtual device in unmodified guest
@ 2005-09-05 10:56 Ian Pratt
0 siblings, 0 replies; 3+ messages in thread
From: Ian Pratt @ 2005-09-05 10:56 UTC (permalink / raw)
To: Xiaofeng Ling, Keir Fraser; +Cc: xen-devel
> Subject: [PATCH][1/6] add a hypercall number for virtual
> device in unmodified guest
>
> add a hypercall number for virtual device in unmodified guest
> There are 6 patches for para-driver support in vmx guest.
> This is the first one.
Xiaofeng,
Please can you write a few paragraphs describing the xen-side changes. I
thought we were going to have a separate hypercall table for hvm guests,
but it looks like you've not gone down this route. Please can you
describe your approach to simplify the review.
Thanks,
Ian
> Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
> Signed-off-by: Arun Sharma <arun.sharma@intel.com>
>
>
> diff -r 287d36b46fa3 xen/arch/x86/x86_32/entry.S
> --- a/xen/arch/x86/x86_32/entry.S Tue Aug 30 20:36:49 2005
> +++ b/xen/arch/x86/x86_32/entry.S Fri Sep 2 22:46:13 2005
> @@ -812,6 +812,7 @@
> .long do_ni_hypercall /* 25 */
> .long do_mmuext_op
> .long do_acm_op /* 27 */
> + .long do_virtual_device_op /* virutal device
> op for VMX */
> .rept NR_hypercalls-((.-hypercall_table)/4)
> .long do_ni_hypercall
> .endr
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH][1/6] add a hypercall number for virtual device in unmodified guest
@ 2005-09-05 14:01 Ling, Xiaofeng
0 siblings, 0 replies; 3+ messages in thread
From: Ling, Xiaofeng @ 2005-09-05 14:01 UTC (permalink / raw)
To: Ian Pratt, Keir Fraser; +Cc: xen-devel
Ian Pratt <mailto:m+Ian.Pratt@cl.cam.ac.uk> wrote:
>> Subject: [PATCH][1/6] add a hypercall number for virtual device in
>> unmodified guest
> Xiaofeng,
>
> Please can you write a few paragraphs describing the xen-side
> changes. I thought we were going to have a separate hypercall table
> for hvm guests, but it looks like you've not gone down this route.
> Please can you describe your approach to simplify the review.
>
ok. The changes for hypervisor part include these 6 patches.
Currently, the hypervisor change has reduced a lot compare to previous
patch.
The changes mainly for 3 parts.
1. make vmx guest can use hypercall.(patch 1,2)
2. deliver event by a irq for vmx guest.( patch 3,5)
3. setup process for 2 kinds of share page: (patch 4, 6)
1) hypercall parameter sharepage,
2) grant table share page
patch1: Just reserver one hypercall number for para-driver. Even use a
seperate call table, we need to reserver one number.
patch2: hypercall entry for vmcall, in this patch, I use a permit bitmap
to check and then call the hypercall_table. To use a seperate call table
is also ok. I'll send the patch later.
patch3 add a call backirq member
patch4 two virtual device operation
patch5 grant table share page setup
patch6 inject callback irq
For xen-linux patch.
ctrl_if.c just resolve the setup_irq problem
gnttab.c for setup share page
blkfront use macro for virt_to_mfn and page_to_phys
xenbus use macro for xenstore share page.
a hypercall wrap. copy paramters to the share page before the hypercall.
I've removed the support of phys_to_machine_map in guest.
for blkfront, the translation will be done in grant table for shadow_translate mode
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-05 14:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-05 10:18 [PATCH][1/6] add a hypercall number for virtual device in unmodified guest Xiaofeng Ling
-- strict thread matches above, loose matches on Subject: below --
2005-09-05 10:56 Ian Pratt
2005-09-05 14:01 Ling, Xiaofeng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.