WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [Qemu-devel] [PATCH V11 13/15] xen: Initialize event cha

To: Anthony.Perard@xxxxxxxxxx
Subject: [Xen-devel] Re: [Qemu-devel] [PATCH V11 13/15] xen: Initialize event channels and io rings
From: Alexander Graf <agraf@xxxxxxx>
Date: Wed, 23 Mar 2011 13:36:38 +0100
Cc: Arun Sharma <arun.sharma@xxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, QEMU-devel <qemu-devel@xxxxxxxxxx>, Anthony Liguori <anthony@xxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 23 Mar 2011 05:37:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1299004529-31290-14-git-send-email-anthony.perard@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1299004529-31290-1-git-send-email-anthony.perard@xxxxxxxxxx> <1299004529-31290-14-git-send-email-anthony.perard@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 01.03.2011, at 19:35, Anthony.Perard@xxxxxxxxxx wrote:

> From: Arun Sharma <arun.sharma@xxxxxxxxx>
> 
> Open and bind event channels; map ioreq and buffered ioreq rings.
> 
> Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>
> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> Acked-by: Alexander Graf <agraf@xxxxxxx>
> ---
> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>