1. 20 7月, 2008 14 次提交
  2. 07 6月, 2008 1 次提交
    • A
      KVM: x86 emulator: fix hypercall return value on AMD · 33e3885d
      Avi Kivity 提交于
      The hypercall instructions on Intel and AMD are different.  KVM allows the
      guest to choose one or the other (the default is Intel), and if the guest
      chooses incorrectly, KVM will patch it at runtime to select the correct
      instruction.  This allows live migration between Intel and AMD machines.
      
      This patching occurs in the x86 emulator.  The current code also executes
      the hypercall.  Unfortunately, the tail end of the x86 emulator code also
      executes, overwriting the return value of the hypercall with the original
      contents of rax (which happens to be the hypercall number).
      
      Fix not by executing the hypercall in the emulator context; instead let the
      guest reissue the patched instruction and execute the hypercall via the
      normal path.
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      33e3885d
  3. 18 5月, 2008 1 次提交
  4. 04 5月, 2008 1 次提交
  5. 27 4月, 2008 13 次提交
  6. 31 1月, 2008 1 次提交
  7. 30 1月, 2008 9 次提交