commit | 8ec4722dd2aab9b69befb919549ea0a5bfc9e670 | [log] [tgz] |
---|---|---|
author | Mohammed Gamal <m.gamal005@gmail.com> | Mon Aug 16 00:47:01 2010 +0300 |
committer | Avi Kivity <avi@redhat.com> | Sun Oct 24 10:51:04 2010 +0200 |
tree | 27001682b43f02ebc5a151d4cbfdc7ef1fb23f71 | |
parent | d9574a25afc3cd7ccd6a0bc05252bb84189e4021 [diff] |
KVM: Separate emulation context initialization in a separate function The code for initializing the emulation context is duplicated at two locations (emulate_instruction() and kvm_task_switch()). Separate it in a separate function and call it from there. Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>