From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: Using VMChannel to communicate with the host. Date: Sun, 16 Sep 2007 01:47:27 +0300 Message-ID: <46EC60FF.60209@qumranet.com> References: <64F9B87B6B770947A9F8391472E032160D95E340@ehost011-8.exch011.intermedia.net> <46E71D72.7000901@cs.ualberta.ca> Reply-To: dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1235306685==" Cc: kvm-devel To: Cam Macdonell Return-path: In-Reply-To: <46E71D72.7000901-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 This is a multi-part message in MIME format. --===============1235306685== Content-Type: multipart/alternative; boundary="------------010200030808000406020501" This is a multi-part message in MIME format. --------------010200030808000406020501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cam Macdonell wrote: > > Dor Laor wrote: > >>> 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 > >> I tried having a program listening on the unix domain socket. > >> Actually, the VM won't even start until a program connects to the > >> socket. I didn't get the message with my listening program, but I'll > >> try the telnet method as I haven't programmed a socket in a while so > >> I may have missed a step. > > > > Go for it, its 1 minute effort. > > Hi Dor, > > It didn't work. I used the following option: -vmchannel > di:2258,tcp:0:4444,server (the // confused kvm) and when the VM booted, > I connected with "telnet localhost 4444" which allowed the boot to > proceed. But, I didn't get the hello host message when I loaded the > hypercall module. dmesg did show that the module loaded successfully. > I'll dig around with it and see what else I can figure ou > I just tried it and it worked. I used fc7 2.6.21 kernel, 64 bits for the guest. Can you send the relevant dmesg? --------------010200030808000406020501 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cam Macdonell wrote:
Re: [kvm-devel] Using VMChannel to communicate with the host.

Dor Laor wrote:
>>> 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
>> I tried having a program listening on the unix domain socket.
>> Actually, the VM won't even start until a program connects to the
>> socket.  I didn't get the message with my listening program, but I'll
>> try the telnet method as I haven't programmed a socket in a while so
>> I may have missed a step.
>
> Go for it, its 1 minute effort.

Hi Dor,

It didn't work.  I used the following option: -vmchannel
di:2258,tcp:0:4444,server (the // confused kvm) and when the VM booted,
I connected with "telnet localhost 4444" which allowed the boot to
proceed.  But, I didn't get the hello host message when I loaded the
hypercall module.  dmesg did show that the module loaded successfully.
I'll dig around with it and see what else I can figure ou

I just tried it and it worked. I used fc7 2.6.21 kernel, 64 bits  for the guest.
Can you send the relevant dmesg?
--------------010200030808000406020501-- --===============1235306685== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============1235306685== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============1235306685==--