Displaying 2 results from an estimated 2 matches for "_hvm_hw_fix_cpu".
2013 Jan 23
1
[PATCH V3] libxc, libxenstore: make the headers C++-friendlier
...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). Includes a modification
of _hvm_hw_fix_cpu() suggested by Jan Beulich.
Signed-off-by: Razvan Cojocaru <rzvncj@gmail.com>
diff -r 5af4f2ab06f3 -r f80587008e17 tools/libxc/xenctrl.h
--- a/tools/libxc/xenctrl.h Tue Jan 22 09:33:10 2013 +0100
+++ b/tools/libxc/xenctrl.h Wed Jan 23 16:41:30 2013 +0200
@@ -26,6 +26,10 @@
#ifndef XENCTRL_...
2013 Jan 23
1
[PATCH V2] libxc, libxenstore: make the headers C++-friendlier
...ff -r 5af4f2ab06f3 -r c273ee1fc8ba 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 11:18:49 2013 +0200
@@ -269,15 +269,15 @@ struct hvm_hw_cpu_compat {
};
static inline int _hvm_hw_fix_cpu(void *h) {
- struct hvm_hw_cpu *new=h;
- struct hvm_hw_cpu_compat *old=h;
+ struct hvm_hw_cpu *newcpu = (struct hvm_hw_cpu *)h;
+ struct hvm_hw_cpu_compat *old = (struct hvm_hw_cpu_compat *)h;
/* If we copy from the end backwards, we should
* be able to do the modification...