[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/3] add virendian.h, and use it to kill xen cpumap issue



Not only does this solve the compiler warning on 32-bit machines,
but it completely gets rid of what looks like bogus pointer aliasing,
all while reducing the number of lines in xen_hypervisor.c.

Eric Blake (3):
  util: add virendian.h macros
  util: use new virendian.h macros
  xen: clean up the mess with cpumap

 .gitignore                |   1 +
 src/Makefile.am           |   1 +
 src/cpu/cpu_x86.c         |  24 ++++------
 src/util/virendian.h      |  93 +++++++++++++++++++++++++++++++++++++++
 src/util/virstoragefile.c | 109 ++++++++++------------------------------------
 src/xen/xen_hypervisor.c  |  16 +++----
 tests/Makefile.am         |   8 +++-
 tests/virendiantest.c     | 102 +++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 239 insertions(+), 115 deletions(-)
 create mode 100644 src/util/virendian.h
 create mode 100644 tests/virendiantest.c

-- 
1.8.1.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]