On Aug 17, 2014, at 9:17 AM, Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote: > Il 13/08/2014 19:14, Nadav Amit ha scritto: >> Commit 5045b46803 added a check that cs.dpl equals cs.rpl during >> task-switch. Unfortunately, is causes some of my tests that run well on >> bare-metal to fail. >> >> Although this check is mentioned in table 7-1 of the SDM as causing a >> #TSS exception, it is not mentioned in table 6-6 that lists "invalid TSS >> conditions" which cause #TSS exceptions. >> >> Thus, I recommend on reverting commit 5045b46803, or alternatively >> rechecking task-switch behavior on bare-metal. > > Can you provide a kvm-unit-tests test for this? I need to put time into writing one. However, the unit test would prove nothing. The question is how bare-metal behaves. According to what I see, it does not perform this check. Nadav-- 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