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

Re: [Xen-devel] [Patch] Adding back CPUID support for Xsave

To: Keir Fraser <keir@xxxxxxx>
Subject: Re: [Xen-devel] [Patch] Adding back CPUID support for Xsave
From: Haitao Shan <maillists.shan@xxxxxxxxx>
Date: Tue, 9 Nov 2010 17:02:17 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Nov 2010 01:03:17 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zA3MTz4fSFRDp5lQRm/H3gdQ2sR3roVGHpPdUMw9M5w=; b=LMe2Mg60Az1MEx0B1PRUzsWti9aJtLUWmJxOXlfjDYWkIcKYeYgNxBkG4Xpiy/hA3e bvthxDsuc5k6tk+DLb26R7n0CW0Z22hZnDCPcRm4/liEs50BQUGfvkddLYVzt6oS0BCs N/N2iasJ+4GkRJaImBjVabBWx99wRKtBuzewM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vvR3s9IGjZngdLsEzTKiGp7vzzreX99WNlxxVY6SrnO4eMWD0WHYQHDrVyq+akkZfy fDsfjyXiv4MH2xuUMZMSrPllRwCjE2rXnPeMxEdm2n62dfxHSEYKQoo3z7tTzx+YlCJ/ QI4w+h+cKWGk5iBt2Yq58P+sdPv4Ltm4674kE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C8FEBC5F.27922%keir@xxxxxxx>
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: <AANLkTik4q5FutsTL4BGyT8sT2nBJ6CoHxcJBL3v4x7dd@xxxxxxxxxxxxxx> <C8FEBC5F.27922%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I remember cpuid exposure is covered by hvm_cpuid(), which is done by
former (long ago) patches.
Probably we may clean that a bit? So that both PV and HVM have the
same mechanism.

I have considered AVX exposure. My concern is: if AVX is considered to
be relying on XSAVE(of course, it is the truth), will we need to add
future features one by one since they are likely all dependent on
XSAVE.
Or could we just let it be, since even they see it, they can not use it, anyway.

Shan Haitao

2010/11/9 Keir Fraser <keir@xxxxxxx>:
> Thanks, this looks better. I have some further questions however.
>
> You appear to only be exposing XSAVE to PV guests -- Why is that?
>
> Also, the patch passes the AVX feature unconditionally through to HVM guests
> -- firstly, why only visible HVM guests; and secondly, should it not be
> conditional on XSAVE support in the hypervisor (don't we need XSAVE to be
> able to save/restore AVX state)?
>
>  -- Keir
>
> On 09/11/2010 02:31, "Haitao Shan" <maillists.shan@xxxxxxxxx> wrote:
>
>> Hi, Keir,
>>
>> This patch adds back the reverted CPUID support for XSAVE feature. Can
>> you have a review?
>>
>> Signed-off-by: Shan Haitao <haitao.shan@xxxxxxxxx>
>>
>> Shan Haitao
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-devel
>
>
>

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