From: Marcelo Tosatti <[EMAIL PROTECTED]>
As suggested by Avi, introduce accessors to read/write guest registers.
This simplifies the ->cache_regs/->decache_regs interface, and improves
register caching which is important for VMX, where the cost of
vmcs_read/vmcs_write is significant.
[avi: fix w
Marcelo Tosatti wrote:
- svm always caches registers, and all registers are dirty, since
cache/decache is cheap
Accurate regs_dirty information is useful for converting the emulator,
so that you can do something like:
emul_register_write(ctxt, reg, val)
{
if (!__test_and_set_bit(re
On Sun, Jun 29, 2008 at 04:14:37PM +0300, Avi Kivity wrote:
> Marcelo Tosatti wrote:
>> As suggested by Avi, introduce accessors to read/write guest registers.
>> This simplifies the ->cache_regs/->decache_regs interface, and improves
>> register caching which is important for VMX, where the cost o
676b68
Author: Marcelo Tosatti <[EMAIL PROTECTED]>
Date: Fri Jun 27 14:58:02 2008 -0300
KVM: x86: accessors for guest registers
As suggested by Avi, introduce accessors to read/write guest registers.
This simplifies the ->cache_regs/->decache_regs interface, and imp
As suggested by Avi, introduce accessors to read/write guest registers.
This simplifies the ->cache_regs/->decache_regs interface, and improves
register caching which is important for VMX, where the cost of
vmcs_read/vmcs_write is significant.
Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]>