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
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 of
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
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]
---