Skip to contentSkip to conversation

recent changes to xen/public/hvm/hvm_op.h

DISCUSSION Jan Beulich 4 participants 4 messages Aug 31, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

changesets 21674, 21772, and 21773 all insert definitions into a block restricting the use to Xen and its tools, while I believe these operations are all supposed to be used directly by guests.

Am I missing something?

Thanks, Jan

#1 lore raw

I assume it was considered a handy place for HVM-related control-plane operations, but which guests shouldn't be executing themselves.

K.

Quoted 15 lines · Jan Beulich

Hi,

changesets 21674, 21772, and 21773 all insert definitions into a block restricting the use to Xen and its tools, while I believe these operations are all supposed to be used directly by guests.

Am I missing something?

Thanks, Jan

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

#2 lore raw
In reply to Jan Beulich
Quoted 8 lines · Jan Beulich

Hi,

changesets 21674, 21772, and 21773 all insert definitions into a block restricting the use to Xen and its tools, while I believe these operations are all supposed to be used directly by guests.

Am I missing something?

I think we made a mistake: I am sure HVMOP_pagetable_dying is executed directly by guests and probably HVMOP_get_time too.

#3 lore raw
Quoted 7 lines · Stefano Stabellini
Quoted 6 lines · Jan Beulich

Hi,

changesets 21674, 21772, and 21773 all insert definitions into a block restricting the use to Xen and its tools, while I believe these operations are all supposed to be used directly by guests.

Quoted 5 lines
Quoted 2 lines

Am I missing something?

I think we made a mistake: I am sure HVMOP_pagetable_dying is executed directly by guests and probably HVMOP_get_time too.

Yes, this is a porting error; all three of those are intended to be used by guests.

Cheers,

Tim.

Signature · 3 lines
Tim Deegan <[email protected]>
Principal Software Engineer, XenServer Engineering
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

Move new HVM-op definitions outside the tools-only #ifdef

xen/include/public/hvm/hvm_op.h +2 -2
diff -r 32c9a19ac98b xen/include/public/hvm/hvm_op.h
@@ -128,6 +128,8 @@ typedef struct xen_hvm_set_mem_type xen_
 typedef struct xen_hvm_set_mem_type xen_hvm_set_mem_type_t;
 DEFINE_XEN_GUEST_HANDLE(xen_hvm_set_mem_type_t);
 
+#endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */
+
 /* Hint from PV drivers for pagetable destruction. */
 #define HVMOP_pagetable_dying        9
 struct xen_hvm_pagetable_dying {
@@ -155,6 +157,4 @@ typedef struct xen_hvm_xentrace xen_hvm_
 typedef struct xen_hvm_xentrace xen_hvm_xentrace_t;
 DEFINE_XEN_GUEST_HANDLE(xen_hvm_xentrace_t);
 
-#endif /* defined(__XEN__) || defined(__XEN_TOOLS__) */
-
 #endif /* __XEN_PUBLIC_HVM_HVM_OP_H__ */

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