[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V11 13/15] xen: Initialize event channels and io
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [PATCH V11 13/15] xen: Initialize event channels and io rings |
Date: |
Wed, 23 Mar 2011 13:36:38 +0100 |
On 01.03.2011, at 19:35, address@hidden wrote:
> From: Arun Sharma <address@hidden>
>
> Open and bind event channels; map ioreq and buffered ioreq rings.
>
> Signed-off-by: Arun Sharma <address@hidden>
> Signed-off-by: Anthony PERARD <address@hidden>
> Signed-off-by: Stefano Stabellini <address@hidden>
> Acked-by: Alexander Graf <address@hidden>
> ---
> hw/xen_common.h | 2 +
> xen-all.c | 411 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 413 insertions(+), 0 deletions(-)
>
> diff --git a/hw/xen_common.h b/hw/xen_common.h
> index 5a36642..a5fc74b 100644
> --- a/hw/xen_common.h
> +++ b/hw/xen_common.h
> @@ -76,4 +76,6 @@ static inline int xc_fd(xc_interface *xen_xc)
> }
> #endif
>
> +void destroy_hvm_domain(void);
> +
> #endif /* QEMU_HW_XEN_COMMON_H */
> diff --git a/xen-all.c b/xen-all.c
> index 03d1e90..f96fd7d 100644
> --- a/xen-all.c
> +++ b/xen-all.c
> @@ -6,12 +6,58 @@
> *
> */
>
> +#include <sys/mman.h>
> +
> #include "hw/pci.h"
> #include "hw/xen_common.h"
> #include "hw/xen_backend.h"
>
> #include "xen-mapcache.h"
>
> +#include <xen/hvm/ioreq.h>
> +#include <xen/hvm/params.h>
> +
> +//#define DEBUG_XEN
> +
> +#ifdef DEBUG_XEN
> +#define DPRINTF(fmt, ...) \
> + do { fprintf(stderr, "xen: " fmt, ## __VA_ARGS__); } while (0)
> +#else
> +#define DPRINTF(fmt, ...) \
> + do { } while (0)
> +#endif
> +
> +/* Compatibility with older version */
> +#if __XEN_LATEST_INTERFACE_VERSION__ < 0x0003020a
> +# define xen_vcpu_eport(shared_page, i) \
> + (shared_page->vcpu_iodata[i].vp_eport)
> +# define xen_vcpu_ioreq(shared_page, vcpu) \
> + (shared_page->vcpu_iodata[vcpu].vp_ioreq)
> +# define FMT_ioreq_size PRIx64
> +#else
> +# define xen_vcpu_eport(shared_page, i) \
> + (shared_page->vcpu_ioreq[i].vp_eport)
> +# define xen_vcpu_ioreq(shared_page, vcpu) \
> + (shared_page->vcpu_ioreq[vcpu])
Could you please change these to static inline functions?
Alex
- [Qemu-devel] [PATCH V11 08/15] xen: Introduce Xen Interrupt Controller, (continued)
- [Qemu-devel] [PATCH V11 08/15] xen: Introduce Xen Interrupt Controller, anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 11/15] Introduce qemu_put_ram_ptr, anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 12/15] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 15/15] xen: Add Xen hypercall for sleep state in the cmos_s3 callback., anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 14/15] xen: Set running state in xenstore., anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 09/15] xen: Introduce the Xen mapcache, anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 10/15] configure: Always use 64bits target physical addresses with xen enabled., anthony . perard, 2011/03/01
- [Qemu-devel] [PATCH V11 13/15] xen: Initialize event channels and io rings, anthony . perard, 2011/03/01
- Re: [Qemu-devel] [PATCH V11 13/15] xen: Initialize event channels and io rings,
Alexander Graf <=
- Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Anthony Liguori, 2011/03/11
- Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Alexander Graf, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Anthony PERARD, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Alexander Graf, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Alexander Graf, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Alexander Graf, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Anthony PERARD, 2011/03/22
- Re: [Xen-devel] Re: [Qemu-devel] [PATCH V11 00/15] Xen device model support, Alexander Graf, 2011/03/22