Jun Koi wrote:
> Hi,
>
> In kvm_setup_pio() we have code like this:
>
>       kvm_arch_ops->cache_regs(vcpu);
>       memcpy(vcpu->pio_data, &vcpu->regs[VCPU_REGS_RAX], 4);
>       kvm_arch_ops->decache_regs(vcpu);
>
> So what is the reason of saving RSP and RIP before the memcpy()
> function, then recovering it right after that?
>
> AFAICS, there nothing is change by the memcpy() function, so I cannot
> figure it out why it is necessary to do that.
>   

In SVM, cache_regs() actually syncs RAX.

Regards,

Anthony Liguori

> Many thanks,
> Jun
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to