From patchwork Tue Dec 22 14:20:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 69277 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBMEKanW017509 for ; Tue, 22 Dec 2009 14:20:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751153AbZLVOUf (ORCPT ); Tue, 22 Dec 2009 09:20:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751244AbZLVOUf (ORCPT ); Tue, 22 Dec 2009 09:20:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49427 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbZLVOUe (ORCPT ); Tue, 22 Dec 2009 09:20:34 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBMEKSkV025709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 22 Dec 2009 09:20:28 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBMEKRc4013887; Tue, 22 Dec 2009 09:20:28 -0500 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 6D98D18D46A; Tue, 22 Dec 2009 16:20:27 +0200 (IST) Date: Tue, 22 Dec 2009 16:20:27 +0200 From: Gleb Natapov To: Mikolaj Kucharski , kvm@vger.kernel.org Subject: Re: Qemu vs Qemu-KVM Message-ID: <20091222142027.GB4490@redhat.com> References: <20091220231024.GK12659@x40.openbsd.home.lan> <20091221072252.GR4490@redhat.com> <20091221222114.GM12659@x40.openbsd.home.lan> <20091222071557.GX4490@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20091222071557.GX4490@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 38a2d20..fc37eac 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -121,6 +121,8 @@ static void ioapic_write_indirect(struct kvm_ioapic *ioapic, u32 val) default: index = (ioapic->ioregsel - 0x10) >> 1; + if (!(ioapic->ioregsel & 1)) + val &= ~0xa000; ioapic_debug("change redir index %x val %x\n", index, val); if (index >= IOAPIC_NUM_PINS) return;