Displaying 2 results from an estimated 2 matches for "hvm_hw_cpu_union".
2013 Jan 23
1
[PATCH V3] libxc, libxenstore: make the headers C++-friendlier
...06f3 -r f80587008e17 xen/include/public/arch-x86/hvm/save.h
--- a/xen/include/public/arch-x86/hvm/save.h Tue Jan 22 09:33:10 2013 +0100
+++ b/xen/include/public/arch-x86/hvm/save.h Wed Jan 23 16:41:30 2013 +0200
@@ -268,16 +268,18 @@ struct hvm_hw_cpu_compat {
uint32_t error_code;
};
+union hvm_hw_cpu_union {
+ struct hvm_hw_cpu nat;
+ struct hvm_hw_cpu_compat cmp;
+};
+
static inline int _hvm_hw_fix_cpu(void *h) {
- struct hvm_hw_cpu *new=h;
- struct hvm_hw_cpu_compat *old=h;
+ union hvm_hw_cpu_union *ucpu = (union hvm_hw_cpu_union *)h;
- /* If we copy from the end backwards, we...
2013 Jan 23
1
[PATCH V2] libxc, libxenstore: make the headers C++-friendlier
Made the xenctrl.h and xenstore.h easier to use with C++:
added ''extern "C"'' statements, moved the definition of
enum xc_error_code above it''s typedef, and renamed a ''new''
parameter (''new'' is a C++ keyword).
Signed-off-by: Razvan Cojocaru <rzvncj@gmail.com>
diff -r 5af4f2ab06f3 -r c273ee1fc8ba tools/libxc/xenctrl.h