From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikram Ambrose Subject: pci-passthrough logging Date: Fri, 19 Feb 2010 18:58:49 -0500 Message-ID: <4B7F25B9.3010000@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mailout-us.gmx.com ([74.208.5.67]:59911 "HELO mailout-us.gmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756265Ab0BTAFf (ORCPT ); Fri, 19 Feb 2010 19:05:35 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Hello, I'm new to kvm and I'm trying to log pci config and mmio read/writes for a particular pci (pci-e to be precise) device that I've passthrough to qemu-kvm (dma=none). I put a printk into kvm_iodevice_read/write() in linux/virt/kvm/iodev.h but the log seems to get corrupted when the action picks up. I looked at qemu-kvm/hw/pci_host.c and found pci_host_data_write/read_mmio[]. But I don't know where those are implemented, nor exactly what they do for that matter. I appologise for the n00b nature of my problem, but there isnt any documentation on the pci-passthrough architecture in linux/Documentation/kvm or in qemu-kvm. Does anyone know where/how to log pci-passthrough accesses? thanks, Vik. PS: This is a "one off" question, so I'm not subscribed to the list, please make sure my email addresses is in the reply fields.