Re: [Qemu-devel] [RFC] Getting specific device from qdev structs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Brook
Date: Monday, June 21, 2010 - 7:07 am

> So I've been looking for a way to obtain things like a PCIDevice from a

If you're having to figure out what kind of a device you have then I think 
you're already doing something else wrong. I'd expect the bits of code that 
needs to identify devices to be inherently bus specific.

If you've got some sort of on-cpu IOMMU which is asking "did this come from an 
ISA device, or a PCI device?", then I suspect you've got your abstraction 
layers wrong. This should already have been handled by the pci/isa to cpu 
bridge.

Paul
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] Getting specific device from qdev structs, Eduard - Gabriel Mun ..., (Mon Jun 21, 6:48 am)
Re: [Qemu-devel] [RFC] Getting specific device from qdev s ..., Paul Brook, (Mon Jun 21, 7:07 am)
Re: [Qemu-devel] [RFC] Getting specific device from qdev s ..., Eduard - Gabriel Mun ..., (Mon Jun 21, 7:32 am)