* Hacking QEMU/KVM to use unused graphics adapters
@ 2007-10-11 6:43 Anthony de Almeida Lopes
[not found] ` <470DC5F4.80807-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Anthony de Almeida Lopes @ 2007-10-11 6:43 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I was curious if anyone thinks that it may be possible to get a
KVM-patched QEMU to use a real video card? For example, let's say I had
a second video card. Is QEMU/kvm a codebase which would support hacking
in the ability to utilize this second video card (one not utilized by
the host Linux)? And in the situation of a laptop, would it be possible
to boot the host Linux in a way that it would not utilize the video
card, but get a qemu guest to use it?
Theoretically, there's no reason this isn't possible, right?
Thanks,
- Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <470DC5F4.80807-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
@ 2007-10-11 8:16 ` Laurent Vivier
[not found] ` <470DDBC5.90401-6ktuUTfB/bM@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Vivier @ 2007-10-11 8:16 UTC (permalink / raw)
To: Anthony de Almeida Lopes; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1.1: Type: text/plain, Size: 1005 bytes --]
Anthony de Almeida Lopes wrote:
> I was curious if anyone thinks that it may be possible to get a
> KVM-patched QEMU to use a real video card? For example, let's say I had
> a second video card. Is QEMU/kvm a codebase which would support hacking
> in the ability to utilize this second video card (one not utilized by
> the host Linux)? And in the situation of a laptop, would it be possible
> to boot the host Linux in a way that it would not utilize the video
> card, but get a qemu guest to use it?
> Theoretically, there's no reason this isn't possible, right?
We need something like a "PCI proxy" allowing to route some I/O to virtual PCI
devices and others to real PCI devices. Moreover we must be able to inform host
kernel to not manage a given PCI card (or be able to hot unplug it from host
kernel PCI structures)
Laurent
--
---------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org -----------------
"Given enough eyeballs, all bugs are shallow" E. S. Raymond
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <470DDBC5.90401-6ktuUTfB/bM@public.gmane.org>
@ 2007-10-11 8:32 ` Dor Laor
[not found] ` <470DDF9F.6040509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Dor Laor @ 2007-10-11 8:32 UTC (permalink / raw)
To: Laurent Vivier
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Anthony de Almeida Lopes
Laurent Vivier wrote:
>
> Anthony de Almeida Lopes wrote:
> > I was curious if anyone thinks that it may be possible to get a
> > KVM-patched QEMU to use a real video card? For example, let's say I had
> > a second video card. Is QEMU/kvm a codebase which would support hacking
> > in the ability to utilize this second video card (one not utilized by
> > the host Linux)? And in the situation of a laptop, would it be possible
> > to boot the host Linux in a way that it would not utilize the video
> > card, but get a qemu guest to use it?
> > Theoretically, there's no reason this isn't possible, right?
>
> We need something like a "PCI proxy" allowing to route some I/O to
> virtual PCI
> devices and others to real PCI devices. Moreover we must be able to
> inform host
> kernel to not manage a given PCI card (or be able to hot unplug it
> from host
> kernel PCI structures)
>
There is work in progress for pci pass through capability. Besides PCI it
also required to have pv dma or 1-1 mapping between the guest and the host.
Both will be released in the following month. NIC pass through works but I'm
not sure about the features required from VGA pass through.
Dor.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <470DDF9F.6040509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2007-10-11 8:40 ` Laurent Vivier
[not found] ` <470DE18F.1080901-6ktuUTfB/bM@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Laurent Vivier @ 2007-10-11 8:40 UTC (permalink / raw)
To: dor.laor-atKUWr5tajBWk0Htik3J/w
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Anthony de Almeida Lopes
[-- Attachment #1.1: Type: text/plain, Size: 1551 bytes --]
Dor Laor wrote:
> Laurent Vivier wrote:
>>
>> Anthony de Almeida Lopes wrote:
>> > I was curious if anyone thinks that it may be possible to get a
>> > KVM-patched QEMU to use a real video card? For example, let's say I had
>> > a second video card. Is QEMU/kvm a codebase which would support hacking
>> > in the ability to utilize this second video card (one not utilized by
>> > the host Linux)? And in the situation of a laptop, would it be possible
>> > to boot the host Linux in a way that it would not utilize the video
>> > card, but get a qemu guest to use it?
>> > Theoretically, there's no reason this isn't possible, right?
>>
>> We need something like a "PCI proxy" allowing to route some I/O to
>> virtual PCI
>> devices and others to real PCI devices. Moreover we must be able to
>> inform host
>> kernel to not manage a given PCI card (or be able to hot unplug it
>> from host
>> kernel PCI structures)
>>
> There is work in progress for pci pass through capability. Besides PCI it
> also required to have pv dma or 1-1 mapping between the guest and the host.
> Both will be released in the following month. NIC pass through works but
> I'm
> not sure about the features required from VGA pass through.
> Dor.
Perhaps if we use host IOMMU we don't need pv DMA ?
How do you say to host to not manage a PCI devices and let the guest managing it ?
Laurent
--
---------------- Laurent.Vivier-6ktuUTfB/bM@public.gmane.org -----------------
"Given enough eyeballs, all bugs are shallow" E. S. Raymond
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 314 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
[-- Attachment #3: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <470DE18F.1080901-6ktuUTfB/bM@public.gmane.org>
@ 2007-10-11 10:36 ` Muli Ben-Yehuda
[not found] ` <20071011103648.GP4335-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Muli Ben-Yehuda @ 2007-10-11 10:36 UTC (permalink / raw)
To: Laurent Vivier
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Anthony de Almeida Lopes
On Thu, Oct 11, 2007 at 10:40:47AM +0200, Laurent Vivier wrote:
> > There is work in progress for pci pass through capability. Besides
> > PCI it also required to have pv dma or 1-1 mapping between the
> > guest and the host. Both will be released in the following
> > month. NIC pass through works but I'm not sure about the features
> > required from VGA pass through. Dor.
>
> Perhaps if we use host IOMMU we don't need pv DMA ?
Indeed, an IOMMU can provide the 1-1 mapping Dor mentioned above (or
you can have both PV DMA and an IOMMU).
> How do you say to host to not manage a PCI devices and let the guest
> managing it ?
If the host driver is modular, it might be enough to just not load (or
unload) it.
Cheers,
Muli
--
SYSTOR 2007 --- 1st Annual Haifa Systems and Storage Conference 2007
http://www.haifa.il.ibm.com/Workshops/systor2007/
Virtualization workshop: Oct 29th, 2007 | Storage workshop: Oct 30th, 2007
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <20071011103648.GP4335-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
@ 2007-10-11 13:19 ` Anthony de Almeida Lopes
[not found] ` <47152328.3070708@qumranet.com>
0 siblings, 1 reply; 8+ messages in thread
From: Anthony de Almeida Lopes @ 2007-10-11 13:19 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Muli Ben-Yehuda wrote:
> On Thu, Oct 11, 2007 at 10:40:47AM +0200, Laurent Vivier wrote:
>
>
>>> There is work in progress for pci pass through capability. Besides
>>> PCI it also required to have pv dma or 1-1 mapping between the
>>> guest and the host. Both will be released in the following
>>> month. NIC pass through works but I'm not sure about the features
>>> required from VGA pass through. Dor.
>>>
>> Perhaps if we use host IOMMU we don't need pv DMA ?
>>
>
> Indeed, an IOMMU can provide the 1-1 mapping Dor mentioned above (or
> you can have both PV DMA and an IOMMU).
>
>
>> How do you say to host to not manage a PCI devices and let the guest
>> managing it ?
>>
>
> If the host driver is modular, it might be enough to just not load (or
> unload) it.
>
> Cheers,
> Muli
>
Thank you for your responses. I was curious, Dor, where could I take a
look at this code?
I checked both sets of recent git logs and nothing popped out at me as
being related. Is it still out-of-tree?
Thanks again,
- Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <47152328.3070708-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2008-01-16 12:05 ` Anthony de Almeida Lopes
[not found] ` <478DF2FA.3070406-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Anthony de Almeida Lopes @ 2008-01-16 12:05 UTC (permalink / raw)
To: dor.laor-atKUWr5tajBWk0Htik3J/w,
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I just read the ChangeLogs from kvm-47 to kvm-59 but I didn't notice
anything that about PCI pass-through or any VGA work. I'm curious how
things are going and what method was selected to accomplish this
functionality?
- Tony
Dor Laor wrote:
> It's still out-of -tree.
> Not for long :)
>
> Anthony de Almeida Lopes wrote:
>> Muli Ben-Yehuda wrote:
>>
>>> On Thu, Oct 11, 2007 at 10:40:47AM +0200, Laurent Vivier wrote:
>>>
>>>
>>>>> There is work in progress for pci pass through capability. Besides
>>>>> PCI it also required to have pv dma or 1-1 mapping between the
>>>>> guest and the host. Both will be released in the following
>>>>> month. NIC pass through works but I'm not sure about the features
>>>>> required from VGA pass through. Dor.
>>>>>
>>>> Perhaps if we use host IOMMU we don't need pv DMA ?
>>>>
>>> Indeed, an IOMMU can provide the 1-1 mapping Dor mentioned above (or
>>> you can have both PV DMA and an IOMMU).
>>>
>>>
>>>> How do you say to host to not manage a PCI devices and let the guest
>>>> managing it ?
>>>>
>>> If the host driver is modular, it might be enough to just not load (or
>>> unload) it.
>>>
>>> Cheers,
>>> Muli
>>>
>>
>> Thank you for your responses. I was curious, Dor, where could I take
>> a look at this code?
>> I checked both sets of recent git logs and nothing popped out at me
>> as being related. Is it still out-of-tree?
>>
>> Thanks again,
>> - Tony
>>
>> -------------------------------------------------------------------------
>>
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> kvm-devel mailing list
>> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>
>>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Hacking QEMU/KVM to use unused graphics adapters
[not found] ` <478DF2FA.3070406-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
@ 2008-01-16 23:03 ` Dor Laor
0 siblings, 0 replies; 8+ messages in thread
From: Dor Laor @ 2008-01-16 23:03 UTC (permalink / raw)
To: Anthony de Almeida Lopes; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wed, 2008-01-16 at 13:05 +0100, Anthony de Almeida Lopes wrote:
> I just read the ChangeLogs from kvm-47 to kvm-59 but I didn't notice
> anything that about PCI pass-through or any VGA work. I'm curious how
> things are going and what method was selected to accomplish this
> functionality?
> - Tony
>
First we had plans only for plain PCI pass through and not VGA device
that has some bios unification possible issues.
Second, we have it working (also all the code was sent to the list) but
there's quick an effort to be done in order to merge it into mainline.
We do want it to happen but we have some other issues on our plait.
Nevertheless, if one wants to push it on
we'll be happy to assist.
Regards,
Dor
> Dor Laor wrote:
> > It's still out-of -tree.
> > Not for long :)
> >
> > Anthony de Almeida Lopes wrote:
> >> Muli Ben-Yehuda wrote:
> >>
> >>> On Thu, Oct 11, 2007 at 10:40:47AM +0200, Laurent Vivier wrote:
> >>>
> >>>
> >>>>> There is work in progress for pci pass through capability. Besides
> >>>>> PCI it also required to have pv dma or 1-1 mapping between the
> >>>>> guest and the host. Both will be released in the following
> >>>>> month. NIC pass through works but I'm not sure about the features
> >>>>> required from VGA pass through. Dor.
> >>>>>
> >>>> Perhaps if we use host IOMMU we don't need pv DMA ?
> >>>>
> >>> Indeed, an IOMMU can provide the 1-1 mapping Dor mentioned above (or
> >>> you can have both PV DMA and an IOMMU).
> >>>
> >>>
> >>>> How do you say to host to not manage a PCI devices and let the guest
> >>>> managing it ?
> >>>>
> >>> If the host driver is modular, it might be enough to just not load (or
> >>> unload) it.
> >>>
> >>> Cheers,
> >>> Muli
> >>>
> >>
> >> Thank you for your responses. I was curious, Dor, where could I take
> >> a look at this code?
> >> I checked both sets of recent git logs and nothing popped out at me
> >> as being related. Is it still out-of-tree?
> >>
> >> Thanks again,
> >> - Tony
> >>
> >> -------------------------------------------------------------------------
> >>
> >> This SF.net email is sponsored by: Splunk Inc.
> >> Still grepping through log files to find problems? Stop.
> >> Now Search log events and configuration files using AJAX and a browser.
> >> Download your FREE copy of Splunk now >> http://get.splunk.com/
> >> _______________________________________________
> >> kvm-devel mailing list
> >> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >> https://lists.sourceforge.net/lists/listinfo/kvm-devel
> >>
> >>
> >
> >
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-01-16 23:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-11 6:43 Hacking QEMU/KVM to use unused graphics adapters Anthony de Almeida Lopes
[not found] ` <470DC5F4.80807-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
2007-10-11 8:16 ` Laurent Vivier
[not found] ` <470DDBC5.90401-6ktuUTfB/bM@public.gmane.org>
2007-10-11 8:32 ` Dor Laor
[not found] ` <470DDF9F.6040509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-10-11 8:40 ` Laurent Vivier
[not found] ` <470DE18F.1080901-6ktuUTfB/bM@public.gmane.org>
2007-10-11 10:36 ` Muli Ben-Yehuda
[not found] ` <20071011103648.GP4335-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-10-11 13:19 ` Anthony de Almeida Lopes
[not found] ` <47152328.3070708@qumranet.com>
[not found] ` <47152328.3070708-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-16 12:05 ` Anthony de Almeida Lopes
[not found] ` <478DF2FA.3070406-9ppiOi6qtBWfG3DagfIdxQ@public.gmane.org>
2008-01-16 23:03 ` Dor Laor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox