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

Re: [Xen-devel] Getting the XSAVE size from userspace


  • To: Jan Beulich <JBeulich@xxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Thu, 5 Nov 2015 12:47:08 +0200
  • Cc: "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Thu, 05 Nov 2015 10:47:08 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=HiWVPI4Hj2036po4WfFlGR8NFklwDsPcmZPBziSpVLasw2WRCEEIDuN6OdjQMmcwPi7WuF+1kOyvw0PbmUNPsT2ht+GuT9IWYkxFCL/cFuTYdHY6x5w5HsxRc27c4VYoUXHMc8wsqFzc2Fq44dMHFFSQqtbnkU4A0hEgBAO4b+ETpP8cYUgSfYd5+jf2VUIp4Dlh8grL35zqEos0tzT5VZLEIW07JTFdyIWRCSreQ3bcdzUvx1/TTtI0G0gX1k+rPpOWlnw0XODk94CMoQCYLebqsVRePc1HsqegCOqgFWBW3A8S1CTxjBFVWc3RCb6oPqvDQXKzOnX2SgS+63akbQ==; h=Received:Received:Received:Received:Received:From:Subject:To:References:Cc:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-BitDefender-Scanner:X-BitDefender-Spam:X-BitDefender-SpamStamp:X-BitDefender-CF-Stamp;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 11/05/2015 12:42 PM, Jan Beulich wrote:
>>>> On 05.11.15 at 10:52, <rcojocaru@xxxxxxxxxxxxxxx> wrote:
>> I need to get the XSAVE size from userspace. The easiest way seems to be
>> to use the XEN_DOMCTL_getvcpuextstate hypercall, but that hypercall is
>> not public / there's no xenctrl.h wrapper for it.
> 
> Before going into any detail of the rest of your mail - any reason you
> can't just consult CPUID output?

That's because the userspace application doesn't live in dom0, but in a
dedicated privileged domain, and I'm unsure if a CPUID issued there
yields the same results as a CPUID issued in dom0. So I thought the
safest way is to get the information directly from the hypervisor. Is
this assumption incorrect?


Thanks,
Razvan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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