[vbox-dev] Build my own passthrough device

Klaus Espenlaub klaus.espenlaub at oracle.com
Thu Sep 18 13:11:39 GMT 2014


On 18.09.2014 12:17, Klaus Espenlaub wrote:
> On 17.09.2014 11:54, DRACULAX wrote:
>> 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
>
> Klaus
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -----邮件原件-----
>> 发件人: 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
>>
>> On 09.09.2014 12:23, DRACULAX wrote:
>>> 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
>>
>>




More information about the vbox-dev mailing list