2016-03-09 21:55+0100, Radim Krčmář: > 2016-03-04 14:46-0600, Suravee Suthikulpanit: >> +static int avic_noaccel_interception(struct vcpu_svm *svm) >> +{ >> + int ret = 0; >> + u32 offset = svm->vmcb->control.exit_info_1 & 0xFF0; >> + u32 rw = (svm->vmcb->control.exit_info_1 >> 32) & 0x1; > > Change "u32 rw" to "bool write" > >> + u32 vector = svm->vmcb->control.exit_info_2 & 0xFFFFFFFF; > > and please #define those masks. I reconsidered. Other users are being removed, so these masks will be used only once and properly named variables are better then. vector isn't used right now ... is the EOI vector you get by reading the APIC page equal to it? (Btw. edge EOI hacks for PIT and RTC won't work because AVIC doesn't exit when TMR=0, but I'd take it slow and tackle those after v3.) -- 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