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

Re: [Xen-devel] [PATCH 09 of 16] amd iommu: add iommu mmio handler



>>> On 23.12.11 at 12:29, Wei Wang <wei.wang2@xxxxxxx> wrote:
> # HG changeset patch
> # User Wei Wang <wei.wang2@xxxxxxx>
> # Date 1324569398 -3600
> # Node ID dd808bdd61c581b041d5b7e816b18674de51da6f
> # Parent  2329dad2786f6f20ea69c9609ab60208cad6fca9
> amd iommu: add iommu mmio handler.

This could be part of patch 3, or (perhaps better) the respective bits
should get moved here instead of adding them as dead code there.

Jan

> Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
> 
> diff -r 2329dad2786f -r dd808bdd61c5 xen/arch/x86/hvm/intercept.c
> --- a/xen/arch/x86/hvm/intercept.c    Thu Dec 22 16:56:35 2011 +0100
> +++ b/xen/arch/x86/hvm/intercept.c    Thu Dec 22 16:56:38 2011 +0100
> @@ -38,7 +38,8 @@ hvm_mmio_handlers[HVM_MMIO_HANDLER_NR] =
>      &hpet_mmio_handler,
>      &vlapic_mmio_handler,
>      &vioapic_mmio_handler,
> -    &msixtbl_mmio_handler
> +    &msixtbl_mmio_handler,
> +    &iommu_mmio_handler
>  };
>  
>  static int hvm_mmio_access(struct vcpu *v,
> diff -r 2329dad2786f -r dd808bdd61c5 xen/include/asm-x86/hvm/io.h
> --- a/xen/include/asm-x86/hvm/io.h    Thu Dec 22 16:56:35 2011 +0100
> +++ b/xen/include/asm-x86/hvm/io.h    Thu Dec 22 16:56:38 2011 +0100
> @@ -69,8 +69,9 @@ extern const struct hvm_mmio_handler hpe
>  extern const struct hvm_mmio_handler vlapic_mmio_handler;
>  extern const struct hvm_mmio_handler vioapic_mmio_handler;
>  extern const struct hvm_mmio_handler msixtbl_mmio_handler;
> +extern const struct hvm_mmio_handler iommu_mmio_handler;
>  
> -#define HVM_MMIO_HANDLER_NR 4
> +#define HVM_MMIO_HANDLER_NR 5
>  
>  int hvm_io_intercept(ioreq_t *p, int type);
>  void register_io_handler(




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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.