Skip to contentSkip to conversation

Comilation fix for 32 bit

PATCH In review Stefan Berger 3 participants 5 messages Apr 26, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Comilation fix for 32 bit

This fixes a compilation problem on 32 bit machines.

Signed-off-by Stefan Berger
xen-unstable.hg/xen/include/public/acm_ops.h +4 -4
Index: root/xen-unstable.hg/xen/include/public/acm_ops.h
===================================================================
@@ -50,7 +50,7 @@
 struct acm_setpolicy {
     /* IN */
     uint32_t interface_version;
-    XEN_GUEST_HANDLE_64(void) pushcache;
+    XEN_GUEST_HANDLE(void) pushcache;
     uint32_t pushcache_size;
 };
 
@@ -59,7 +59,7 @@ struct acm_setpolicy {
 struct acm_getpolicy {
     /* IN */
     uint32_t interface_version;
-    XEN_GUEST_HANDLE_64(void) pullcache;
+    XEN_GUEST_HANDLE(void) pullcache;
     uint32_t pullcache_size;
 };
 
@@ -68,7 +68,7 @@ struct acm_getpolicy {
 struct acm_dumpstats {
     /* IN */
     uint32_t interface_version;
-    XEN_GUEST_HANDLE_64(void) pullcache;
+    XEN_GUEST_HANDLE(void) pullcache;
     uint32_t pullcache_size;
 };
 
@@ -84,7 +84,7 @@ struct acm_getssid {
         domaintype_t domainid;
         ssidref_t    ssidref;
     } id;
-    XEN_GUEST_HANDLE_64(void) ssidbuf;
+    XEN_GUEST_HANDLE(void) ssidbuf;
     uint32_t ssidbuf_size;
 };
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 3 lines · Stefan Berger

This fixes a compilation problem on 32 bit machines.

Signed-off-by Stefan Berger

What's the issue?

You're better off keeping the GUEST_HANDLE_64() and getting rid of the compat acm stuff. As far as I can see, all your interfaces are *currently* 32/64-bit invariant. So the compat stuff can safely be removed and then you don't need to continually keep it sync.

-- Keir

#2 lore raw

[email protected] wrote on 04/26/2007 02:50:49 AM:

Quoted 7 lines · Stefan Berger
Quoted 4 lines

This fixes a compilation problem on 32 bit machines.

Signed-off-by Stefan Berger

What's the issue?

It does not compile on 32bit because of those 4 lines. 64bit is fine.

Quoted 3 lines

You're better off keeping the GUEST_HANDLE_64() and getting rid of the compat acm stuff. As far as I can see, all your interfaces are

*currently*

Quoted 1 line

32/64-bit invariant. So the compat stuff can safely be removed and then

you

Quoted 1 line

don't need to continually keep it sync.

I was going to ask you about this. I am writing on a patch that puts all the ACM hypercall structures into a union. I am wondering what the compat stuff is for (xen/common/compat) and what the criterion is for needing this compat code.

Stefan

Quoted 9 lines

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 10 lines · Stefan Berger
Quoted 4 lines
Quoted 4 lines

You're better off keeping the GUEST_HANDLE_64() and getting rid of the compat acm stuff. As far as I can see, all your interfaces are *currently* 32/64-bit invariant. So the compat stuff can safely be removed and then you don't need to continually keep it sync.

I was going to ask you about this. I am writing on a patch that puts all the ACM hypercall structures into a union. I am wondering what the compat stuff is for (xen/common/compat) and what the criterion is for needing this compat code.

If you have structures that differ in layout in 32-bit mode vs. 64-bit mode then you need a compat shim when running 32-bit dom0 on 64-bit Xen (which we support doing nowadays). Currently you have no such issues that I¹m aware of. You should be able to delete the compat stuff that is there currently with no problems.

Is the build failure in Xen itself or in tools? I¹m sure it¹s easily fixed without needing to throw away the GUEST_HANDLE_64() usage.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw

[email protected] wrote on 04/26/2007 06:55:06 AM:

Quoted 4 lines · Stefan Berger
Quoted 3 lines

You're better off keeping the GUEST_HANDLE_64() and getting rid of the compat acm stuff. As far as I can see, all your interfaces are

*currently*

Quoted 1 line
Quoted 1 line

32/64-bit invariant. So the compat stuff can safely be removed and

then you

Quoted 7 lines
Quoted 1 line

don't need to continually keep it sync.

I was going to ask you about this. I am writing on a patch that puts all the ACM hypercall structures into a union. I am wondering what the compat stuff is for (xen/common/compat) and what the criterion is for needing this compat code.

Quoted 5 lines

If you have structures that differ in layout in 32-bit mode vs. 64- bit mode then you need a compat shim when running 32-bit dom0 on 64- bit Xen (which we support doing nowadays). Currently you have no such issues that I?m aware of. You should be able to delete the compat stuff that is there currently with no problems.

Ok.

Quoted 3 lines

Is the build failure in Xen itself or in tools? I?m sure it?s easily fixed without needing to throw away the GUEST_HANDLE_64() usage.

It does not build in Xen.

Stefan

Quoted 5 lines

-- Keir_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel