ia64/xen-unstable

changeset 14910:4bbc509a0b3f

hvm: Fix ioreq structure size to be 32/64-bit invariant.
This fixes booting HVM guests with 32-bit dom0 on 64-bit Xen.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Apr 24 16:28:37 2007 +0100 (2007-04-24)
parents ee56c8d8864b
children a99093e602c6
files xen/include/public/hvm/ioreq.h
line diff
     1.1 --- a/xen/include/public/hvm/ioreq.h	Tue Apr 24 15:01:13 2007 +0100
     1.2 +++ b/xen/include/public/hvm/ioreq.h	Tue Apr 24 16:28:37 2007 +0100
     1.3 @@ -65,9 +65,10 @@ struct ioreq {
     1.4  typedef struct ioreq ioreq_t;
     1.5  
     1.6  struct vcpu_iodata {
     1.7 -    struct ioreq         vp_ioreq;
     1.8 -    /* Event channel port */
     1.9 -    unsigned int    vp_eport;   /* VMX vcpu uses this to notify DM */
    1.10 +    struct ioreq vp_ioreq;
    1.11 +    /* Event channel port, used for notifications to/from the device model. */
    1.12 +    uint32_t vp_eport;
    1.13 +    uint32_t _pad0;
    1.14  };
    1.15  typedef struct vcpu_iodata vcpu_iodata_t;
    1.16  
    1.17 @@ -81,7 +82,7 @@ struct buffered_iopage {
    1.18      unsigned int    read_pointer;
    1.19      unsigned int    write_pointer;
    1.20      ioreq_t         ioreq[IOREQ_BUFFER_SLOT_NUM];
    1.21 -};            /* sizeof this structure must be in one page */
    1.22 +}; /* NB. Size of this structure must be no greater than one page. */
    1.23  typedef struct buffered_iopage buffered_iopage_t;
    1.24  
    1.25  #if defined(__ia64__)