about using vmcall instruction

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

 



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?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux