]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: Fix PCI config space emulation
authorPekka Enberg <penberg@cs.helsinki.fi>
Sat, 31 Jul 2010 20:01:10 +0000 (23:01 +0300)
committerPekka Enberg <penberg@cs.helsinki.fi>
Sat, 31 Jul 2010 20:01:10 +0000 (23:01 +0300)
commit94e43acd49314bf8395b7d00f592cd857a70b15f
tree1b40ef04de6f1c4d151a7dbd0e145facb9b3e715
parent9fe6b316c9ba13690a8d107a57e4bc2f701fa99e
kvm: Fix PCI config space emulation

This fixes the two problems:

  1. Yes, 'register number' is offset in 4 bytes, not 1 byte

  2. We must be able to return sane values for the whole 256 configuration
     space, not just for the first 64 bytes that's covered by the fixed header

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
tools/kvm/pci.c