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-ia64-devel

Re: [Xen-ia64-devel] [PATCH] xencomm_privcmd_sched_op

Tristan Gingold wrote:
  I have modified the build rule and some files, but some hypercall
seem to be unimplemented. like xencomm_mini_hypercall_hvm_op,
xencomm_mini_hypercall_xen_version.
Do you want me to implement them ?

 Yes, I hope to....

 I've attached the log of compiling PV-on-HVM driver, and
my modification for compiling them.

Thanks,
- Tsunehisa Doi
# make -C /tmp/mnt/usr/src/linux-2.6.16.13 M=$PWD modules
make: Entering directory `/tmp/mnt/usr/src/linux-2.6.16.13'
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/blkfront/blkfront.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/blkfront/vbd.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/blkfront/xen-vbd.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/netfront/netfront.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/netfront/xen-vnif.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/evtchn.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/platform-pci.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/gnttab.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen_support.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/features.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xcom_hcall.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus_comms.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus_xs.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus_probe.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus_dev.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus_client.o
  CC [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xen_proc.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus.o
  Building modules, stage 2.
  MODPOST
*** Warning: "xencomm_mini_hypercall_hvm_op" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus.ko]
 undefined!
*** Warning: "xencomm_create_mini" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko]
 undefined!
*** Warning: "xencomm_arch_hypercall_suspend" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko]
 undefined!
*** Warning: "xencomm_mini_hypercall_xen_version" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko]
 undefined!
*** Warning: "xencomm_mini_hypercall_hvm_op" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko]
 undefined!
*** Warning: "xencomm_vaddr_to_paddr" 
[/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko]
 undefined!
  CC      
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/blkfront/xen-vbd.mod.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/blkfront/xen-vbd.ko
  CC      
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/netfront/xen-vnif.mod.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/netfront/xen-vnif.ko
  CC      
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.mod.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/platform-pci/xen-platform-pci.ko
  CC      
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus.mod.o
  LD [M]  
/home/vmio/xen-ia64-unstable-pvfix.hg/unmodified_drivers/linux-2.6/xenbus/xenbus.ko
make: Leaving directory `/tmp/mnt/usr/src/linux-2.6.16.13'
diff -r 1ec09a35d13d linux-2.6-xen-sparse/arch/ia64/xen/xcom_hcall.c
--- a/linux-2.6-xen-sparse/arch/ia64/xen/xcom_hcall.c   Tue Oct 03 14:46:10 
2006 -0600
+++ b/linux-2.6-xen-sparse/arch/ia64/xen/xcom_hcall.c   Wed Oct 04 18:02:57 
2006 +0900
@@ -33,7 +33,11 @@
 #include <xen/interface/acm_ops.h>
 #include <xen/interface/hvm/params.h>
 #include <xen/public/privcmd.h>
+#ifdef CONFIG_VMX_GUEST
+#include <asm/hypervisor.h>
+#else
 #include <asm/hypercall.h>
+#endif
 #include <asm/page.h>
 #include <asm/uaccess.h>
 #include <asm/xen/xencomm.h>
diff -r 1ec09a35d13d linux-2.6-xen-sparse/include/asm-ia64/hypercall.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Tue Oct 03 14:46:10 
2006 -0600
+++ b/linux-2.6-xen-sparse/include/asm-ia64/hypercall.h Wed Oct 04 18:02:57 
2006 +0900
@@ -390,11 +390,7 @@ HYPERVISOR_add_physmap(unsigned long gpf
 #define HYPERVISOR_xen_version xencomm_mini_hypercall_xen_version
 #define HYPERVISOR_console_io xencomm_mini_hypercall_console_io
 #define HYPERVISOR_hvm_op xencomm_mini_hypercall_hvm_op
-#ifdef CONFIG_VMX_GUEST
-#define HYPERVISOR_memory_op 0
-#else
 #define HYPERVISOR_memory_op xencomm_mini_hypercall_memory_op
-#endif
 #else
 #define HYPERVISOR_sched_op xencomm_hypercall_sched_op
 #define HYPERVISOR_event_channel_op xencomm_hypercall_event_channel_op
diff -r 1ec09a35d13d linux-2.6-xen-sparse/include/asm-ia64/xen/xcom_hcall.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/xen/xcom_hcall.h    Tue Oct 03 
14:46:10 2006 -0600
+++ b/linux-2.6-xen-sparse/include/asm-ia64/xen/xcom_hcall.h    Wed Oct 04 
18:02:57 2006 +0900
@@ -66,6 +66,8 @@ extern int xencomm_mini_hypercall_callba
 
 extern int xencomm_mini_hypercall_memory_op(unsigned int cmd, void *arg);
 
+extern unsigned long xencomm_mini_hypercall_hvm_op(int cmd, void *arg);
+
 /* For privcmd.  Locally declare argument type to avoid include storm.
    Type coherency will be checked within privcmd.c  */
 struct privcmd_hypercall;
diff -r 1ec09a35d13d unmodified_drivers/linux-2.6/mkbuildtree
--- a/unmodified_drivers/linux-2.6/mkbuildtree  Tue Oct 03 14:46:10 2006 -0600
+++ b/unmodified_drivers/linux-2.6/mkbuildtree  Wed Oct 04 18:02:57 2006 +0900
@@ -19,6 +19,7 @@ mkdir -p include/xen
 mkdir -p include/xen
 mkdir -p include/public
 mkdir -p include/asm
+mkdir -p include/asm/xen
 
 lndir -silent ${XL}/include/xen include/xen
 ln -sf ${XEN}/include/public include/xen/interface
@@ -47,6 +48,9 @@ i[34567]86)
        ln -sf ${XL}/include/asm-ia64/hypercall.h include/asm
        ln -sf ${XL}/include/asm-ia64/synch_bitops.h include/asm
        ln -sf ${XL}/include/asm-ia64/maddr.h include/asm
+       ln -sf ${XL}/include/asm-ia64/xen/xcom_hcall.h include/asm/xen
+       ln -sf ${XL}/include/asm-ia64/xen/xencomm.h include/asm/xen
+       ln -sf ${XL}/arch/ia64/xen/xcom_hcall.c platform-pci
        ;;
 *)
        echo unknown architecture $uname
diff -r 1ec09a35d13d unmodified_drivers/linux-2.6/platform-pci/Kbuild
--- a/unmodified_drivers/linux-2.6/platform-pci/Kbuild  Tue Oct 03 14:46:10 
2006 -0600
+++ b/unmodified_drivers/linux-2.6/platform-pci/Kbuild  Wed Oct 04 18:02:57 
2006 +0900
@@ -5,3 +5,4 @@ EXTRA_CFLAGS += -I$(M)/platform-pci
 EXTRA_CFLAGS += -I$(M)/platform-pci
 
 xen-platform-pci-objs := evtchn.o platform-pci.o gnttab.o xen_support.o 
features.o
+xen-platform-pci-objs += xcom_hcall.o
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel