1. 16 Jun, 2014 1 commit
  2. 12 Jun, 2014 2 commits
  3. 09 Jun, 2014 3 commits
    • Nadav Amit's avatar
      x86: emulator: long mode smsw tests · 313f4efe
      Nadav Amit authored
      
      
      SMSW instruction on long-mode is performed according to the operand size, if
      the destination operand is a register.  This patch tests whether it is
      performed correctly instead of always using two-bytes operands (as KVM
      previously did).  Note that when a dword destination operand is used, the
      result is zero-extended to qword on long-mode.
      Signed-off-by: default avatarNadav Amit <namit@cs.technion.ac.il>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      313f4efe
    • Nadav Amit's avatar
      x86: realmode: test smsw behavior with register operand · 99ee878c
      Nadav Amit authored
      
      
      The smsw instruction has an undocumented behavior, in which the high-order
      16-bits of CR0 are also saved in a 32-bit destination register.  This is
      similar to the way smsw behaves in long-mode. However, it is hard to test the
      long-mode case, since we need to cause an "invalid guest state" in long-mode.
      
      The test works as follows: it sets CR0.CD (bit 30), so any of the high 16-bits
      would be set.  It then executes smsw to register destination and compares the
      register value with that of CR0.  CR0 value is restored when the test is done.
      
      This test is expected to fail only when unrestricted mode is disabled or
      unsupported.
      Signed-off-by: default avatarNadav Amit <namit@cs.technion.ac.il>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      99ee878c
    • Nadav Amit's avatar
      x86: emulator: additional smsw test-case · 4003963d
      Nadav Amit authored
      
      
      An additional test case for the emulator was added to test smsw which is
      trapped by the emulator.  The other existing test-cases occur in the guest (at
      least on VMX), since the values are read directly from the CR0 read shadow.
      Signed-off-by: default avatarNadav Amit <namit@cs.technion.ac.il>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      4003963d
  4. 06 Jun, 2014 1 commit
  5. 04 Jun, 2014 2 commits
  6. 27 May, 2014 5 commits
  7. 13 May, 2014 16 commits
  8. 28 Apr, 2014 1 commit
  9. 01 Apr, 2014 2 commits
  10. 27 Mar, 2014 1 commit
  11. 25 Mar, 2014 3 commits
  12. 17 Mar, 2014 2 commits
  13. 26 Feb, 2014 1 commit