From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v2 1/2] KVM: x86: Use vector-hashing to deliver lowest-priority interrupts Date: Tue, 19 Jan 2016 14:42:31 +0100 Message-ID: <569E3D47.2020702@redhat.com> References: <1450229853-3886-1-git-send-email-feng.wu@intel.com> <1450229853-3886-2-git-send-email-feng.wu@intel.com> <20151223171932.GB7061@potion.redhat.com> <569CC162.6090207@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" To: "Wu, Feng" , =?UTF-8?Q?Radim_Krcm=c3=a1r?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46530 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753890AbcASNmg (ORCPT ); Tue, 19 Jan 2016 08:42:36 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 19/01/2016 05:44, Wu, Feng wrote: > > I think Radim's suggestion is fine. You can print an error (just once > > per guest) to dmesg if the result of the hashing computation corresponds > > to a disabled APIC. > > Good idea, is there already a convenient way to do this in KVM? No, you can just use something like the definition of printk_once (in include/linux/printk.h), but with a flag in struct kvm_arch. Paolo