From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMn1f-0002C9-UE for qemu-devel@nongnu.org; Wed, 18 May 2011 16:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QMn1e-0003sQ-Q4 for qemu-devel@nongnu.org; Wed, 18 May 2011 16:07:23 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:36618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QMn1e-0003s8-93 for qemu-devel@nongnu.org; Wed, 18 May 2011 16:07:22 -0400 Message-ID: <4DD426F7.60301@web.de> Date: Wed, 18 May 2011 22:07:19 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4DD3C5B9.1080908@redhat.com> <4DD3D236.90708@siemens.com> <4DD3D95E.2060105@redhat.com> <4DD3E1B3.3020405@siemens.com> <4DD3E610.1080201@siemens.com> <4DD4199E.2000702@codemonkey.ws> <4DD41DBB.2020108@web.de> <4DD41F2D.3030600@codemonkey.ws> In-Reply-To: <4DD41F2D.3030600@codemonkey.ws> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD1AFAF4FD2504272C5C7A10A" Sender: jan.kiszka@web.de Subject: Re: [Qemu-devel] [RFC] Memory API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , Avi Kivity , qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD1AFAF4FD2504272C5C7A10A Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 2011-05-18 21:34, Anthony Liguori wrote: > On 05/18/2011 02:27 PM, Jan Kiszka wrote: >> On 2011-05-18 21:10, Anthony Liguori wrote: >>> On 05/18/2011 10:30 AM, Jan Kiszka wrote: >>> You really don't need to register 90% of the time. In the case of a = PC >>> with i440fx, it's really quite simple: >>> >>> if an I/O is to the APIC page, >>> it's handled by the APIC >> >> That's not that simple. We need to tell apart: >> - if a cpu issued the request, and which one =3D> forward to APIC >=20 > Right, but what I'm saying is that this logic lives in > kvm-all.c:kvm_run():case EXIT_MMIO. >=20 > Obviously for TCG, it's a bit more complicated but this should be > handled way before there's any kind of general dispatch. Hmm, checking again, I think the APIC should not show up here at all. We really need to filter it out very early at CPU level, i.e. when creating the iotlb (or when dispatching a KVM EXIT_MMIO). It's cpu local, nothing the chipset will ever see. I really wonder now why I dropped the idea of handling per-cpu regions as a special case in tlb_set_page. It looks trivial, could even be done with a linear per-cpu list before looking at any chipset mappings. Jan --------------enigD1AFAF4FD2504272C5C7A10A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3UJvcACgkQitSsb3rl5xSsPQCdEtUj7xpfrW7FJxqlgk5er57H VdoAoL9oiCHNdNIgyCXUQlr60NVaZ8Qj =acZu -----END PGP SIGNATURE----- --------------enigD1AFAF4FD2504272C5C7A10A--