Discussion:
[vbox-dev] Build my own passthrough device
DRACULAX
2014-09-17 09:54:57 UTC
Permalink
Sorry to reply late.
I actually want to build a virtual pci device and passthrough it to my linux
guest.
Looking for some tips to follow.












-----????-----
???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?11? 1:06
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] Build my own passthrough device
Hi,guys,
I found virtualbox support the passthrough features and I like to
build one for testing.
What are you exactly talking about? Which kind of device do you want to pass
through? USB? PCI?

You have to be a lot more explicit to get help...

Klaus
Any document for this? Or any demos/samples?
Best regards
Klaus Espenlaub
2014-09-18 10:17:58 UTC
Permalink
Post by DRACULAX
Sorry to reply late.
I actually want to build a virtual pci device and passthrough it to my linux
guest.
Looking for some tips to follow.
Pretty much *all* the devices which VirtualBox implements are virtual,
and a large portion of them are PCI devices. So these can serve as
samples: AHCI, IDE, SCSI, OHCI and more.

VirtualBox is open source, so you can see the entire source, and for a
couple of simple ISA devices we have sample code which is not used
actively in VirtualBox, but is present in the tree.

Klaus
Post by DRACULAX
-----????-----
???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?11? 1:06
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] Build my own passthrough device
Hi,guys,
I found virtualbox support the passthrough features and I like to
build one for testing.
What are you exactly talking about? Which kind of device do you want to pass
through? USB? PCI?
You have to be a lot more explicit to get help...
Klaus
Any document for this? Or any demos/samples?
Best regards
Klaus Espenlaub
2014-09-18 13:11:39 UTC
Permalink
Post by Klaus Espenlaub
Post by DRACULAX
Sorry to reply late.
I actually want to build a virtual pci device and passthrough it to my linux
guest.
Looking for some tips to follow.
Pretty much *all* the devices which VirtualBox implements are virtual,
and a large portion of them are PCI devices. So these can serve as
samples: AHCI, IDE, SCSI, OHCI and more.
VirtualBox is open source, so you can see the entire source, and for a
couple of simple ISA devices we have sample code which is not used
actively in VirtualBox, but is present in the tree.
Oh, and I forgot to mention: one can deliver device emulations as
separate dll/so/dylib files bundled into an extpack, and enable them by
the extpack code. See the BusMouseSample extpack, which is what I was
subtly hinting at in the previous paragraph.

Klaus
Post by Klaus Espenlaub
Klaus
Post by DRACULAX
-----????-----
???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?11? 1:06
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] Build my own passthrough device
Hi,guys,
I found virtualbox support the passthrough features and I like to
build one for testing.
What are you exactly talking about? Which kind of device do you want to pass
through? USB? PCI?
You have to be a lot more explicit to get help...
Klaus
Any document for this? Or any demos/samples?
Best regards
DRACULAX
2014-09-19 01:10:42 UTC
Permalink
That help. I will look into it













-----????-----
???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?18? 18:18
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] Build my own passthrough device
Post by DRACULAX
Sorry to reply late.
I actually want to build a virtual pci device and passthrough it to my
linux guest.
Looking for some tips to follow.
Pretty much *all* the devices which VirtualBox implements are virtual, and a large portion of them are PCI devices. So these can serve as
samples: AHCI, IDE, SCSI, OHCI and more.

VirtualBox is open source, so you can see the entire source, and for a couple of simple ISA devices we have sample code which is not used actively in VirtualBox, but is present in the tree.

Klaus
Post by DRACULAX
-----????-----
???: Klaus Espenlaub [mailto:klaus.espenlaub at oracle.com]
????: 2014?9?11? 1:06
???: vbox-dev at virtualbox.org
??: Re: [vbox-dev] Build my own passthrough device
Hi,guys,
I found virtualbox support the passthrough features and I like to
build one for testing.
What are you exactly talking about? Which kind of device do you want
to pass through? USB? PCI?
You have to be a lot more explicit to get help...
Klaus
Any document for this? Or any demos/samples?
Best regards
Loading...