LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-26-2016, 02:26 AM   #1
gmdn
LQ Newbie
 
Registered: Feb 2016
Location: Bengaluru
Distribution: ubuntu
Posts: 2

Rep: Reputation: Disabled
Drivers on host OS


Hello,

I am newbie to virtualization world. I have experience on driver development on linux system. I have a theoretical knowledge about full-virtualization and paravirtualization. I have googled and learnt about its concepts. (example : http://www.ibm.com/developerworks/library/l-virtio/)

I wanted to try writing drivers and get hands-on experience on it.
Could you please suggest
1. Any book/link which says how to write drivers on Host-OS (linux) and Guest-OS (linux) which talk to each other via hypervisor?
2. Any boards (example: Beagle board) on which I can test above driver code.

Thanks in advance,
best regards,
gmdn
 
Old 02-26-2016, 03:27 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Hello and welcome to LQ.

I think that what you are saying is, "How do I write a virtual device, one that a vm of some type will use much like a physical hardware device?" In VM's you basically have two ways to make the client act like a real computer. One is coded into the vm or added by some file. Some of those files can be seen in qemu sources for the various network and video choices. Another way is to passthrough the physical device to the client.


On some very recent systems and recent kernels you may be able to expose part of the real hardware to a vm. Generally termed pci passthough.

https://www.virtualbox.org/manual/ch...pcipassthrough
http://wiki.xen.org/wiki/Xen_PCI_Passthrough

I would think that that type of support would be more server board but could be gaining traction in other systems.
 
1 members found this post helpful.
Old 02-28-2016, 06:09 AM   #3
gmdn
LQ Newbie
 
Registered: Feb 2016
Location: Bengaluru
Distribution: ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi Jefro,

Thanks a lot for the information. I will read through the provided links and get back with questions.

Basically, I want to start with simple virtual character driver with ioctls, which could be accessed from host.
I needed some information which says how to implement these virtual drivers (something like information mentioned in LDD by Alexandro Rubini)

Thanks and regards,
gmdn
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to copy file from remote host to local host then delete from remote host legendmac Linux - Newbie 13 05-27-2015 03:47 PM
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 01:51 PM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 12:45 AM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 04:02 PM
Installing drivers on Red Hat 8.0 Adaptec SCSI Host Adapter? goldenradium Linux - Software 4 12-25-2002 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration