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

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


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • From: Razvan Cojocaru <rcojocaru@xxxxxxxxxxxxxxx>
  • Date: Fri, 31 Jul 2015 18:30:08 +0300
  • Comment: DomainKeys? See http://domainkeys.sourceforge.net/
  • Delivery-date: Fri, 31 Jul 2015 15:29:17 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=bitdefender.com; b=tDYuhXi1gx2TXd8tqRTPPe8vOgozNIx+Z+7QDVnDx1gRiz4PV7EUaGFOK4vecdCRhWRUOLBRJ3ebnpGhtHGm0dRj82T5OlDSkqhwpe0NFr37rFQOZKQZoklGOlY673+8N8DoWpMIT5ScEy9dlP+DytYlwGYl52NOG31vColvsLyIUwqGVKPOBGNWh7e2DsA4W8KMe8wuvaaejvHIzj9YsE6QLOxCeNnTFq4JXtfl0GLugujtQDwhpMIvTxywdVWF/2za5jrGudLJnwoeHW1qSzVpA8wDs4bHpLqLP4clNGwnpnFTi0RmzcOMwv6UF0pNAUadRKw0ZQPFbrMw/UnAvw==; h=Received:Received:Received:Received:Received:From:Subject:To:References: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>

Thanks for the quick reply!

On 07/31/2015 06:13 PM, Andrew Cooper wrote:
>> 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.
> 
> Write interception for that MSR is disabled (if the hardware supports
> disabling interception) because it is not interesting.
> 
> You can re-enable interception by commenting out the appropriate
> vmx_disable_intercept_for_msr() line in construct_vmcs()

It shouldn't be disabled, it's in the
vmx_introspection_force_enabled_msrs[] list and I'm testing it with
memory introspection.

>> 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?
> 
> Are you certain that the guest is actually setting it?  If the guest
> never sets it in the first place, 0 will be the expected value.

That might be it, I'll need to look closer.


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