From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: VGA address mapping? Date: Wed, 22 Jul 2009 10:48:25 +0300 Message-ID: <20090722074825.GF5638@redhat.com> References: <4158487B9DEE0647BA23911D1C22795767AB1FE9@orsmsx501.amr.corp.intel.com> <4158487B9DEE0647BA23911D1C22795767AB1FEB@orsmsx501.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "kvm@vger.kernel.org" To: "Saksena, Abhishek" Return-path: Received: from mx2.redhat.com ([66.187.237.31]:35113 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752669AbZGVHs1 (ORCPT ); Wed, 22 Jul 2009 03:48:27 -0400 Content-Disposition: inline In-Reply-To: <4158487B9DEE0647BA23911D1C22795767AB1FEB@orsmsx501.amr.corp.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jul 21, 2009 at 04:06:10PM -0700, Saksena, Abhishek wrote: > Would also like to mention I am not using Qemu and building some basic IO models around KVM (only using libkvm.h) > > -Abhishek > ________________________________ > From: Saksena, Abhishek > Sent: Tuesday, July 21, 2009 11:13 AM > To: kvm@vger.kernel.org > Subject: VGA address mapping? > > Hi > I am implementing a VGA Device model. The model provides functions to read/write VGA memory space. > > Just for testing I want to capture memory reads/writes to addresses 0xA0000->0xC0000 and forward it to my VGA model. > > > I have used following function to create physical ram > > int kvm_create ( kvm_context_t kvm, > unsigned long phys_mem_bytes, > void ** phys_mem > ) > > The function comments says that this creates a new virtual machine, maps physical RAM to it, and creates a virtual CPU for it. Memory gets mapped for addresses 0->0xA0000, 0xC0000->phys_mem_bytes. > This indeed what comment says, but looking at the code I don't see it using phys_mem_bytes/phys_mem parameters at all. Look at QEMU code how memory is created. > > > I was expecting mimio read/write callbacks to capture transactions between 0xA0000->0xC0000 but I don't see that happening. > > > > My question is how I can configure KVM to forward me reads/writes for VGA address space? > > > > > > Thanks > > Abhishek > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Gleb.