From bb6476e771e73941ef7117796116f1b569227483 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 12 Jul 2007 08:57:52 +0000 Subject: [PATCH] * src/xen_internal.c: applied patch from Christian Ehrhardt to fix Xen hypervisor alignment problems on PPC64 * AUTHORS: added Christian Daniel --- AUTHORS | 1 + ChangeLog | 6 ++++++ docs/bugs.html | 7 ++++++- docs/libvir.html | 9 +++++++++ src/xen_internal.c | 14 ++++++++++++++ 5 files changed, 36 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 3604396334..028dafcf20 100644 --- a/AUTHORS +++ b/AUTHORS @@ -34,6 +34,7 @@ Patches have also been contributed by: Nobuhiro Itou Masayuki Sunou Mark Johnson + Christian Ehrhardt [....send patches to get your name here....] diff --git a/ChangeLog b/ChangeLog index 1b60df7f24..1d1dfdd513 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 12 10:57:17 CEST 2007 Daniel Veillard + + * src/xen_internal.c: applied patch from Christian Ehrhardt to + fix Xen hypervisor alignment problems on PPC64 + * AUTHORS: added Christian + Thu Jul 12 09:34:00 BST 2007 Richard W.M. Jones * configure.in: Removed --with-qemud-pid-file option since diff --git a/docs/bugs.html b/docs/bugs.html index ea03e5ffdb..8c8887e386 100644 --- a/docs/bugs.html +++ b/docs/bugs.html @@ -9,4 +9,9 @@ If possible generate the patches by using cvs diff -u in a CVS checkout.

W If you want to report a bug or ask for a feature, please check the existing open bugs, then if yours isn't a duplicate of an existing bug, log a new bug and attach any patch or extra data that you may have available. It is always a good idea to also to post to the mailing-list -too, so that everybody working on the project can see it, thanks !

+too, so that everybody working on the project can see it, thanks !

Some of the libvirt developpers may be found on IRC on the OFTC +network. Use the settings:

  • server: irc.oftc.net
  • +
  • port: 6667 (the usual IRC port)
  • +
  • channel: #virt
  • +

But there is no garantee that someone will be watching or able to reply, +use the mailing-list if you don't get an answer there.

diff --git a/docs/libvir.html b/docs/libvir.html index f9d7183bec..69e3451f68 100644 --- a/docs/libvir.html +++ b/docs/libvir.html @@ -1417,6 +1417,15 @@ an existing bug, mailing-list too, so that everybody working on the project can see it, thanks !

+

Some of the libvirt developpers may be found on IRC on the OFTC +network. Use the settings:

+
    +
  • server: irc.oftc.net
  • +
  • port: 6667 (the usual IRC port)
  • +
  • channel: #virt
  • +
+

But there is no garantee that someone will be watching or able to reply, +use the mailing-list if you don't get an answer there.

Remote support

diff --git a/src/xen_internal.c b/src/xen_internal.c index 12d948bb8e..545a816e88 100644 --- a/src/xen_internal.c +++ b/src/xen_internal.c @@ -314,10 +314,17 @@ typedef struct xen_v2_getdomaininfolistop xen_v2_getdomaininfolistop; struct xen_v2s3_getdomaininfolistop { domid_t first_domain; uint32_t max_domains; +#ifdef __BIG_ENDIAN__ + struct { + int __pad[(sizeof (long long) - sizeof (struct xen_v2d5_getdomaininfo *)) / sizeof (int)]; + struct xen_v2d5_getdomaininfo *v; + } buffer; +#else union { struct xen_v2d5_getdomaininfo *v; uint64_t pad ALIGN_64; } buffer; +#endif uint32_t num_domains; }; typedef struct xen_v2s3_getdomaininfolistop xen_v2s3_getdomaininfolistop; @@ -422,10 +429,17 @@ typedef struct xen_v2_setvcpumap xen_v2_setvcpumap; /* HV version 2, Dom version 5 requires 64-bit alignment */ struct xen_v2d5_cpumap { +#ifdef __BIG_ENDIAN__ + struct { + int __pad[(sizeof (long long) - sizeof (uint8_t *)) / sizeof (int)]; + uint8_t *v; + } bitmap; +#else union { uint8_t *v; uint64_t pad ALIGN_64; } bitmap; +#endif uint32_t nr_cpus; }; struct xen_v2d5_setvcpumap { -- GitLab