From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: Using VMChannel to communicate with the host. Date: Tue, 11 Sep 2007 10:09:58 +0300 Message-ID: <46E63F46.2040707@qumranet.com> References: <46E1D44E.90509@cs.ualberta.ca> <46E3C345.9090305@qumranet.com> <46E56A71.50102@cs.ualberta.ca> Reply-To: dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Cam Macdonell Return-path: In-Reply-To: <46E56A71.50102-edFDblaTWIyXbbII50Afww@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Cam Macdonell wrote: > > Dor Laor wrote: > > I just tested it, it got a little deprecated over time since it call > > pci_module_init instead of pci_register_* and some more irq function > > deprecation.The sysfs interface in not complete and you can't read/write > > from the device. > > The qemu parameters are -vmchannel di:2258,unix:/tmp/file,server > > 2258 is the vendor id for the device, you can use unix sockets ot even > > tcp for the host end. > > > > Hi Dor, > > Thanks, that got it up and running. But in the hypercall.c code (from > the git repo) there is a "hello host" message that looks like it should > be written to the host. How do I trigger that to be sent so my very > simple "listening" program can read it? > > Thanks, > Cam > You need to open the unix socket you passed to the vmchannel parameter. An easier alternative is to use -vmchannel di:2258,tcp://0:4444,server. Before the guest loads you'll need to telnet the 4444 port and then you should receive the hello world output once the driver is up. -Dor ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/