From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Mysterious address matching in assigned_dev_pci_read_config Date: Sat, 27 Nov 2010 18:02:26 +0100 Message-ID: <4CF139A2.9030004@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9D7D85E6156BF4FEA0544A89" To: kvm Return-path: Received: from fmmailgate02.web.de ([217.72.192.227]:49762 "EHLO fmmailgate02.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752824Ab0K0RHN (ORCPT ); Sat, 27 Nov 2010 12:07:13 -0500 Received: from smtp06.web.de ( [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id A25F9189137D9 for ; Sat, 27 Nov 2010 18:02:32 +0100 (CET) Received: from [88.66.127.175] (helo=mchn199C.mchp.siemens.de) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #24) id 1PMOAS-00089R-00 for kvm@vger.kernel.org; Sat, 27 Nov 2010 18:02:32 +0100 Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9D7D85E6156BF4FEA0544A89 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi, can anyone explain this code in assigned_dev_pci_read_config? ... /* vga specific, remove later */ if (address =3D=3D 0xFC) goto do_log; fd =3D pci_dev->real_device.config_fd; again: ret =3D pread(fd, &val, len, address); if (ret !=3D len) { ... } do_log: ... So this skips any read access to address 0xfc and returns 0 for some "vga specific" reasons. But even if it's supposed to work around issues with passing through some VGA adapters, this skipping affects all device types, no? Unfortunately, this hunk was already part of the very first version, no hints in git. Jan --------------enig9D7D85E6156BF4FEA0544A89 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/ iEYEARECAAYFAkzxOagACgkQitSsb3rl5xQMlQCgrWeMIkUqOWxrnjf8NJdGzMId ph4AoNjDxDDOEmdn6AMNWI6aI1IG7pZ2 =9X7f -----END PGP SIGNATURE----- --------------enig9D7D85E6156BF4FEA0544A89--