Re: A question about how kvm switch context to guest

2012-07-04 Thread Zhengwang Ruan
Original Message From: Avi Kivity Sent: 2012年07月04日 星期三 16时47分40秒 To: Zhengwang Ruan Subject: Re: A question about how kvm switch context to guest On 07/03/2012 12:50 PM, Zhengwang Ruan wrote: Hi kashyapc& all, I see a piece of code in vmx_vcpu_run as below, is it use

Re: A question about how kvm switch context to guest

2012-07-03 Thread Avi Kivity
On 07/03/2012 12:50 PM, Zhengwang Ruan wrote: > Hi kashyapc & all, > > I see a piece of code in vmx_vcpu_run as below, is it used to switch > context to a guest? Kvm don't used "vmlaunch" or "vmresume" to launch or > resume a guest? You trimmed the bit that contains vmlaunch/vmresume. Why does

A question about how kvm switch context to guest

2012-07-03 Thread Zhengwang Ruan
Hi kashyapc & all, I see a piece of code in vmx_vcpu_run as below, is it used to switch context to a guest? Kvm don't used "vmlaunch" or "vmresume" to launch or resume a guest? Why does kvm need to manually switch context by filling registers using stored register copies? === a