public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Mysterious address matching in assigned_dev_pci_read_config
@ 2010-11-27 17:02 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2010-11-27 17:02 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

Hi,

can anyone explain this code in assigned_dev_pci_read_config?

    ...
    /* vga specific, remove later */
    if (address == 0xFC)
        goto do_log;

    fd = pci_dev->real_device.config_fd;

again:
    ret = pread(fd, &val, len, address);
    if (ret != 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-27 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-27 17:02 Mysterious address matching in assigned_dev_pci_read_config Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox