public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Virtualized hardware and PCI
@ 2007-02-16 16:59 Ronald Lew
       [not found] ` <BAY121-F3C2AA87DC35CF1DD93FA7F4950-MsuGFMq8XAE@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Ronald Lew @ 2007-02-16 16:59 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Can Guest OS access abnormal PCI cards such as a fax card or a card designed 
for analog phones (like Digium cards)?  Can the guest OS gain full access to 
the PCI card without going through the virtualization?

_________________________________________________________________
With tax season right around the corner, make sure to follow these few 
simple tips. 
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtualized hardware and PCI
       [not found] ` <BAY121-F3C2AA87DC35CF1DD93FA7F4950-MsuGFMq8XAE@public.gmane.org>
@ 2007-02-18  9:47   ` Avi Kivity
       [not found]     ` <45D8209B.8040004-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Avi Kivity @ 2007-02-18  9:47 UTC (permalink / raw)
  To: Ronald Lew; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Ronald Lew wrote:
> Can Guest OS access abnormal PCI cards such as a fax card or a card designed 
> for analog phones (like Digium cards)?  Can the guest OS gain full access to 
> the PCI card without going through the virtualization?
>
>   

At present this is not supported.  On current hardware it could be made 
to work, but only with cards which don't do dma.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtualized hardware and PCI
       [not found]     ` <45D8209B.8040004-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-02-18  9:49       ` Muli Ben-Yehuda
       [not found]         ` <20070218094944.GD2363-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Muli Ben-Yehuda @ 2007-02-18  9:49 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ronald Lew

On Sun, Feb 18, 2007 at 11:47:07AM +0200, Avi Kivity wrote:
> Ronald Lew wrote:
> > Can Guest OS access abnormal PCI cards such as a fax card or a card designed 
> > for analog phones (like Digium cards)?  Can the guest OS gain full access to 
> > the PCI card without going through the virtualization?
> 
> At present this is not supported.  On current hardware it could be made 
> to work, but only with cards which don't do dma.

How would you handle device interrupts? take them in the host and then
inject to the guest through the qemu device emulation?

Cheers,
Muli


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtualized hardware and PCI
       [not found]         ` <20070218094944.GD2363-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
@ 2007-02-18  9:54           ` Avi Kivity
  0 siblings, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2007-02-18  9:54 UTC (permalink / raw)
  To: Muli Ben-Yehuda; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ronald Lew

Muli Ben-Yehuda wrote:
> On Sun, Feb 18, 2007 at 11:47:07AM +0200, Avi Kivity wrote:
>   
>> Ronald Lew wrote:
>>     
>>> Can Guest OS access abnormal PCI cards such as a fax card or a card designed 
>>> for analog phones (like Digium cards)?  Can the guest OS gain full access to 
>>> the PCI card without going through the virtualization?
>>>       
>> At present this is not supported.  On current hardware it could be made 
>> to work, but only with cards which don't do dma.
>>     
>
> How would you handle device interrupts? take them in the host and then
> inject to the guest through the qemu device emulation?
>
>   

Yes.  Though I now see a problem: masking pci interrupts is not 
standardized, so the host handler cannot shut up the interrupt by 
itself, and of course it cannot rely on the guest doing so.  So without 
some knowledge of the device, all other pci devices that share the same 
interrupt line are at risk.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-18  9:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-16 16:59 Virtualized hardware and PCI Ronald Lew
     [not found] ` <BAY121-F3C2AA87DC35CF1DD93FA7F4950-MsuGFMq8XAE@public.gmane.org>
2007-02-18  9:47   ` Avi Kivity
     [not found]     ` <45D8209B.8040004-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-02-18  9:49       ` Muli Ben-Yehuda
     [not found]         ` <20070218094944.GD2363-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-02-18  9:54           ` Avi Kivity

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