Skip to contentSkip to conversation

xc_domain_hvm_getcontext_partial(... CPU ...), the RIP register, and mem_event

DISCUSSION Razvan Cojocaru 2 participants 2 messages Feb 25, 2013

lore
Share & tools
lore
#0 lore raw

Hello,

assuming that the VCPU is paused while waiting for userspace to respond to a page fault mem_event, and userspace calls libxc's xc_domain_hvm_getcontext_partial(... CPU ...) and tries to inspect RIP, is this a safe thing to do? Is RIP's value guaranteed to be safe to inspect in this context?

Thanks,
Razvan Cojocaru

#1 lore raw
Quoted 7 lines · Razvan Cojocaru

Hello,

assuming that the VCPU is paused while waiting for userspace to respond to a page fault mem_event, and userspace calls libxc's xc_domain_hvm_getcontext_partial(... CPU ...) and tries to inspect RIP, is this a safe thing to do? Is RIP's value guaranteed to be safe to inspect in this context?

Yes.

Cheers,

Tim.