commit | dd856efafe6097a5c9104725c2bca74430423db8 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@redhat.com> | Mon Aug 27 23:46:17 2012 +0300 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Mon Aug 27 18:38:55 2012 -0300 |
tree | d074a16680f3a39798f372e16426476aa7f6e1df | |
parent | 66a03505a7fcc70187319ef2318832f4d3c451a6 [diff] |
KVM: x86 emulator: access GPRs on demand Instead of populating the entire register file, read in registers as they are accessed, and write back only the modified ones. This saves a VMREAD and VMWRITE on Intel (for rsp, since it is not usually used during emulation), and a two 128-byte copies for the registers. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>