From patchwork Tue Sep 21 12:31:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 196972 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8LCW3Mw005950 for ; Tue, 21 Sep 2010 12:32:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304Ab0IUMb6 (ORCPT ); Tue, 21 Sep 2010 08:31:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31252 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753350Ab0IUMb6 (ORCPT ); Tue, 21 Sep 2010 08:31:58 -0400 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 o8LCViMe007797 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 21 Sep 2010 08:31:44 -0400 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 o8LCVhUZ024345; Tue, 21 Sep 2010 08:31:44 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 9E36718D46C; Tue, 21 Sep 2010 14:31:42 +0200 (IST) Date: Tue, 21 Sep 2010 14:31:42 +0200 From: Gleb Natapov To: mtosatti@redhat.com Cc: seabios@seabios.org, kvm@vger.kernel.org Subject: [PATCH] support piix PAM registers in KVM Message-ID: <20100921123142.GB11145@redhat.com> MIME-Version: 1.0 Content-Disposition: inline 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Tue, 21 Sep 2010 12:32:03 +0000 (UTC) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 933ad86..0bf435d 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -99,10 +99,6 @@ static void i440fx_update_memory_mappings(PCII440FXState *d) int i, r; uint32_t smram, addr; - if (kvm_enabled()) { - /* FIXME: Support remappings and protection changes. */ - return; - } update_pam(d, 0xf0000, 0x100000, (d->dev.config[I440FX_PAM] >> 4) & 3); for(i = 0; i < 12; i++) { r = (d->dev.config[(i >> 1) + (I440FX_PAM + 1)] >> ((i & 1) * 4)) & 3;