[Top][All Lists]

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

[Qemu-discuss] Use virtio serial channel send data to vm, but vm not rea

From: 2020human
Subject: [Qemu-discuss] Use virtio serial channel send data to vm, but vm not read data in /dev/vport0p1
Date: Fri, 3 Jul 2015 15:12:08 +0800

I want to upgrade qemu,but virtio channel device  can not send data to vm.

1. I created a vm and add channel:
  <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/r-22-VM.agent'/>
      <target type='virtio' name='r-22-VM.vport'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>

2. Use scripts(run this scripts is no error output) send data to socket.
 import socket

3. But i not read date in vm device /dev/vport0p1 .

My version, libvirt:  qmeu: 2.3.0  system: centos 6.5 (qemu 2.0+ is same problem)
qemu compile parameters:  ./configure --target-list=x86_64-softmmu --enable-kvm --enable-guest-agent --enable-rbd --enable-spice --enable-linux-aio --enable-libusb --enable-usb-redir --prefix=/usr

compile process occurs:
 CC    x86_64-softmmu/target-i386/kvm.o
  GEN   trace/generated-helpers.c
  CC    x86_64-softmmu/hw/i386/acpi-build.o
/opt/qemu-2.3.0/hw/i386/acpi-build.c: In function ‘build_append_pci_bus_devices’:
/opt/qemu-2.3.0/hw/i386/acpi-build.c:515: warning: ‘notify_method’ may be used uninitialized in this function
  CC    x86_64-softmmu/trace/generated-helpers.o
  LINK  x86_64-softmmu/qemu-system-x86_64

Run command: qemu-system-x86_64 --version  no problem.

This test  in libvirt and qemu 1.5.3 is success, data can be received.

Please help , thanks

reply via email to

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