[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Writing a CAN driver for QEMU

From: Paolo Bonzini
Subject: Re: [Qemu-devel] Writing a CAN driver for QEMU
Date: Sun, 19 May 2013 14:58:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

Il 18/05/2013 20:24, Rempel, Cynthia ha scritto:
> we want to be able to verify a guest OS's CAN driver has been integrated 
> properly and is sending CAN packets... 
> Perhaps along the lines of two calls:
> qemu-system-arm -hda linux1.img -can student-implemented-device
> qemu-system-arm -hda linux2.img -can student-implemented-device

You would probably use either -net, or -netdev and -device (see

> Then using a network protocol analyzer (such as Wireshark) with a custom 
> filter to recognize CAN packets,
> OR
> qemu-system-arm -hda linux1.img -can student-implemented-device
> then attaching a real CAN device to the host computer and verifying that the 
> output is being recognized be real hardware.

Is this CAN device just an Ethernet device?  QEMU does not support other
link-level protocols.  Adding them would be possible and interesting,
however it would add a bit to the complexity.

> Whichever is more feasible to implement...

Both would be the same.  In the first case, you'd probably use "-netdev
socket" to share a virtual network between two virtual machines.  In the
second, you would use something like "-netdev tap" (again assuming it's
just an Ethernet device).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]