Re: [PATCH 3/4] test: Add mode-switch test for nested svm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On 08/02/2010 05:11 PM, Roedel, Joerg wrote:

What is this testing exactly?  There is no svm function directly
associated with mode switch.  In fact, most L1s will intercept cr and
efer access and emulate the mode switch, rather than letting L2 perform
the mode switch directly.
This is testing the failure case without the nested-svm efer patch I
submitted last week. The sequence above (which switches from long mode
to real mode and back to long mode) fails without this patch.

A direct test would be to

  mov $MSR_EFER, %ecx
  rdmsr
  xor $EFER_NX, %eax
  wrmsr

and see that L1 EFER was updated.

I don't object to the more complicated test, but in general prefer simpler, direct tests so that when they fail we know exactly why.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux