From: Paolo Bonzini Subject: Re: [PATCH RFC] x86/kvm/lapic: always disable MMIO interface in x2APIC mode Date: Thu, 2 Aug 2018 15:34:37 +0200 Message-ID: <8db7b58a-0b20-e587-a215-996ada83bc4c@redhat.com> References: <20180727144448.9606-1-vkuznets@redhat.com> <87sh41nkz5.fsf@vitty.brq.redhat.com> <87wot899qw.fsf@vitty.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Jim Mattson , kvm list , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , the arch/x86 maintainers , LKML To: Vitaly Kuznetsov Return-path: In-Reply-To: <87wot899qw.fsf@vitty.brq.redhat.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 02/08/2018 15:30, Vitaly Kuznetsov wrote: > >> Vitaly, perhaps you could resubmit this patch, and provide a >> KVM_CAP_DISABLE_QUIRKS switch that would make apic_mmio_{read,write} >> return -EOPNOTSUPP in this case? > Just to make sure I understand, > > we introduce a KVM_QUIRK_LAPIC_DISABLED_MMIO bit and will be emulating > MMIO hole in KVM till Qemu is able to deal with reads/writes passed to > it correctly? Yes, or forever, whichever comes first. Paolo