From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue3Ca-0002zI-BX for qemu-devel@nongnu.org; Sun, 19 May 2013 08:59:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ue3CV-00009g-N5 for qemu-devel@nongnu.org; Sun, 19 May 2013 08:59:04 -0400 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:57019) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ue3CV-00009Y-H0 for qemu-devel@nongnu.org; Sun, 19 May 2013 08:58:59 -0400 Received: by mail-ea0-f173.google.com with SMTP id n15so3309913ead.18 for ; Sun, 19 May 2013 05:58:58 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5198CC88.1090709@redhat.com> Date: Sun, 19 May 2013 14:58:48 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: , <51978858.3010205@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Writing a CAN driver for QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Rempel, Cynthia" Cc: Gedare Bloom , Amar Takhar , Petr Benes , Thomas Doerfler , "Sebastian.Huber@embedded-brains.de" , "qemu-devel@nongnu.org" , Jennifer Averett , Chris Johns , Cl?udio Silva , Joel Sherrill , Pavel Pisa 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 docs/qdev-device-use.txt). > 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). Paolo