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-ia64-devel

RE: [Xen-ia64-devel][PATCH][VTD][dom0] dom0 vtd patch

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel][PATCH][VTD][dom0] dom0 vtd patch
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Fri, 24 Oct 2008 10:22:02 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 24 Oct 2008 02:53:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081024021817.GA21257%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <F7C8A4D3A9905B45A80E4C194793FA6501B31316BE@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081023012210.GA15025%yamahata@xxxxxxxxxxxxx> <F7C8A4D3A9905B45A80E4C194793FA6501B3131D10@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20081024021817.GA21257%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ack1ftYQqdtfCvfoQX2K2Oh2w4a6JAAAEdlw
Thread-topic: [Xen-ia64-devel][PATCH][VTD][dom0] dom0 vtd patch
Isaku Yamahata wrote:
> On Thu, Oct 23, 2008 at 02:14:52PM +0800, Xu, Anthony wrote:
>> Isaku Yamahata wrote:
>>> On Wed, Oct 22, 2008 at 05:43:13PM +0800, Xu, Anthony wrote:
>>>> dom0/ia64/vtd patch
>>>> 
>>>> Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
>>> 
>>> 
>>> In XEN_DOMCTL_get_device_group case.
>>> 
>>> 
>>> struct xen_domctl_get_device_group {
>>>     uint32_t  machine_bdf;      /* IN */
>>>     uint32_t  max_sdevs;        /* IN */
>>>     uint32_t  num_sdevs;        /* OUT */
>>>     XEN_GUEST_HANDLE_64(uint32)  sdev_array;   /* OUT */ };
>>> 
>>> XEN_DOMCTL_get_device_group is used by libxc.
>>> sdev_array needs ot be handled correctly.
>> 
>> I guess you are talking about xencomm,
>> I don't know how to handle it.
>> Can you enlighten me?
> 
> How about this?

That's good.

I understand how to handle it now.

Anthony


> 
> 
> [IA64] xencomm: support several domctls for VT-d.
> 
> This patch adds xencomm support of several domctl hypercalls
> for VT-d.
> 
> Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
> 
> diff -r c87adc976013 arch/ia64/xen/xcom_privcmd.c
> --- a/arch/ia64/xen/xcom_privcmd.c    Mon Oct 20 15:29:07 2008 +0100
> +++ b/arch/ia64/xen/xcom_privcmd.c    Fri Oct 24 11:22:02 2008 +0900
> @@ -340,6 +340,20 @@
>                       return -ENOMEM;
>               set_xen_guest_handle(kern_op.u.hvmcontext.buffer, (void*)desc);
>               break;
> +     case XEN_DOMCTL_get_device_group:
> +     {
> +             struct xen_domctl_get_device_group *get_device_group =
> +                     &kern_op.u.get_device_group;
> +             desc = xencomm_map(
> +                     xen_guest_handle(get_device_group->sdev_array),
> +                     get_device_group->max_sdevs * sizeof(uint32_t));
> +             if (xen_guest_handle(get_device_group->sdev_array) != NULL &&
> +                 get_device_group->max_sdevs > 0 && desc == NULL)
> +                     return -ENOMEM;
> +             set_xen_guest_handle(kern_op.u.get_device_group.sdev_array,
> +                                  (void*)desc);
> +             break;
> +     }
>       case XEN_DOMCTL_max_vcpus:
>       case XEN_DOMCTL_scheduler_op:
>       case XEN_DOMCTL_setdomainhandle:
> @@ -354,6 +368,12 @@
>       case XEN_DOMCTL_set_opt_feature:
>       case XEN_DOMCTL_assign_device:
>       case XEN_DOMCTL_subscribe:
> +     case XEN_DOMCTL_test_assign_device:
> +     case XEN_DOMCTL_deassign_device:
> +     case XEN_DOMCTL_bind_pt_irq:
> +     case XEN_DOMCTL_unbind_pt_irq:
> +     case XEN_DOMCTL_memory_mapping:
> +     case XEN_DOMCTL_ioport_mapping:
>               break;
>       case XEN_DOMCTL_pin_mem_cacheattr:
>               return -ENOSYS;
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

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