public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* about using vmcall instruction
@ 2010-07-22 10:11 吴忠远
  2010-07-22 13:13 ` Andre Przywara
  0 siblings, 1 reply; 2+ messages in thread
From: 吴忠远 @ 2010-07-22 10:11 UTC (permalink / raw)
  To: kvm

an module is executed in guest using vmcall instruction. then host
handler the vmcall exit and read the registers value. but ax,cx,dx get
the correct values while bx and si get the worong. what is the
problem.
code  in guest is :
__asm__  ("mov $10,%ax");
__asm__  ("mov $20,%bx");
__asm__  ("mov $30,%cx");
__asm__  ("mov $40,%dx");
__asm__  ("mov $50,%si");
__asm__  ("vmcall");
host output :
HYPER CALL IS CALLED AND THE NR IS 10,bx is -526778348,cx is 30,dx is
40,si is -1017839566
so ax(NR) ,cx,dx values are correct .but bx and si values are wrong.why?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-22 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-22 10:11 about using vmcall instruction 吴忠远
2010-07-22 13:13 ` Andre Przywara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox