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

[Xen-devel] Should hvm_hw_cpu's sysenter_eip always be zero after xc_domain_hvm_getcontext_partial()?


  • To: "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Fri, 31 Jul 2015 18:00:42 +0300
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Fri, 31 Jul 2015 14:59:40 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=vGCl+ycutQffrQ85lkZEHYcbHEtlNf+DdwGxYkMDuUMoTepulwsDCrmQmLVrWWtbyX9wWaRLuwgGJTIuwKzo6kGMLBNrnB5ZRl2oZsIwFYeU5U+pE+q9pQ0YnCDKN5CUbrrEudJBaC3Dwo3P8X0SIdcGtfCIlHEFeV3dPo2XVZjHZZRxT3md8aU3EIhfbJUw2yxPOA13FynywHUWIiXxRfuboOo8d2oLRG2CuddzUIwl3wzogYubFuWgagAENULcpwkrPaW4Jjpkd0651cK47Tb+Tzmqj8VvK6UzImBrX3+fToUcIxE91JaNNUQDM09gf0jgWQLr720gwphZpSlOWQ==; h=Received:Received:Received:Received:Received:To:From:Subject:X-Enigmail-Draft-Status:Message-ID:Date:User-Agent:MIME-Version: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>

Hello,

It has become apparent that after a succesful
xc_domain_hvm_getcontext_partial( ..., HVM_SAVE_CODE(CPU), ...) call,
the sysenter_eip member of struct hvm_hw_cpu is always zero.

Looking in the code, the only two __vmwrite(GUEST_SYSENTER_EIP, ...)
calls occur in xen/arch/x86/hvm/vmx/vmx.c. One is in
vmx_msr_write_intercept(), but adding a printk() just after produces no
output after starting and stopping a guest.

The other is in vmx_vmcs_restore(), which seems to dutifully restore the
never-set value of zero after a save.

So this doesn't seem to be actually initialized anywhere. Could somebody
please recommend the best place to initialize it, and the best value to
initialize it with? Or maybe you could point out what I'm missing, if
that's the case?


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®.