search for: hvm_hw_cpu_compat

Displaying 2 results from an estimated 2 matches for "hvm_hw_cpu_compat".

2013 Jan 23
1
[PATCH V2] libxc, libxenstore: make the headers C++-friendlier
...} +#endif + #endif /* XENSTORE_H */ /* diff -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 sho...
2013 Jan 23
1
[PATCH V3] libxc, libxenstore: make the headers C++-friendlier
...} +#endif + #endif /* XENSTORE_H */ /* diff -r 5af4f2ab06f3 -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_u...