Re: pci_get_dev_by_id() from interrupt handlers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Tuesday, April 20, 2010 - 10:35 am

On Tue, Apr 20, 2010 at 09:32:15AM -0700, Greg KH wrote:

Not anymore. You proved me wrong ;-)


The idea was to capture IO page faults in the IOMMU and propagate them
to KVM instead of just printk into dmesg. KVM could do something better
then like killing the guest. Currently a malicious guest could flood
host dmesg by causing IO page faults.
For the AMD IOMMU the page faults are reported in an event log and the
cpu is informed by an interrupt about it. The event log entry contains
the bus/dev/function of the device. To get the necessary information to
propagate this to KVM I need to get the 'struct device' for it.
I could certainly do this in a tasklet instead but doing that only for
the task of converting bus/device/function into 'struct device' sounds
a bit complicated to me.

Regards,

	Joerg

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
pci_get_dev_by_id() from interrupt handlers, Joerg Roedel, (Tue Apr 20, 9:04 am)
Re: pci_get_dev_by_id() from interrupt handlers, Greg KH, (Tue Apr 20, 9:32 am)
Re: pci_get_dev_by_id() from interrupt handlers, Joerg Roedel, (Tue Apr 20, 10:35 am)
Re: pci_get_dev_by_id() from interrupt handlers, Greg KH, (Tue Apr 20, 10:52 am)
Re: pci_get_dev_by_id() from interrupt handlers, Joerg Roedel, (Wed Apr 21, 3:05 am)
Re: pci_get_dev_by_id() from interrupt handlers, Peter Zijlstra, (Wed Apr 21, 3:21 am)
Re: pci_get_dev_by_id() from interrupt handlers, Joerg Roedel, (Wed Apr 21, 3:41 am)
Re: pci_get_dev_by_id() from interrupt handlers, Peter Zijlstra, (Wed Apr 21, 3:46 am)
Re: pci_get_dev_by_id() from interrupt handlers, Joerg Roedel, (Wed Apr 21, 3:55 am)