RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 949182 - Test libvirt - qemu integration for new qemu chardev flow control
Summary: Test libvirt - qemu integration for new qemu chardev flow control
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 909059
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-06 20:26 UTC by Amit Shah
Modified: 2013-12-04 10:26 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 909059
Environment:
Last Closed: 2013-12-04 10:26:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 2 Peter Krempa 2013-04-24 18:37:41 UTC
I tested the build linked in Comment 1 with RHEL-6.4 GA version of libvirt and everything seems to work fine.

I tested: monitor, console, serial ports, spice agent channel and guest agent channel. This should cover the most basic usage of chardevs of qemu by libvirt.

The monitor works fine under normal conditions and slight load. The console and serial ports work fine with PTY backend and TCP backend both under heavy load and normal usage. The spice agent channel is working fine. The guest agent channel with unix socket backend works well and under heavy load too.

Even with no clients reading the guest behaved fine and the channels worked after reconnecting the reader.

I'm moving this now to ON_QA as it's a test-only bug to incorporate into standard testing cycle.

Comment 3 Amit Shah 2013-04-26 09:11:59 UTC
Thanks for testing!  Your testing is indeed encouraging, allowing us to proceed with pushing the patches forward.

The qemu patches are not yet part of an official build, QE should wait till that happens for testing.  I will update this bug when qemu gets all the patches in.

Comment 4 Amit Shah 2013-05-10 04:28:26 UTC
qemu patches are available in the official builds starting from qemu-kvm-0.12.1.2-2.368.el6

Comment 5 Xuesong Zhang 2013-09-11 06:40:19 UTC
Verify this bug with libvirt-0.10.2-24.el6.x86_64 and qemu-kvm-rhev-0.12.1.2-2.401.el6.x86_64. It seems everything is working well, so change the status to "verify".

Steps:
1. "socket-virtserialport", edit the guest xml like the following one:
......
<controller type='virtio-serial' index='0'/>
<channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/b.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
    </channel>
......
2. start the geust, then transfer data from the geust to host and back.
Send data out from the guest: 
        # echo a > /dev/vport0p0
Receive data in the host: 
        # nc -U /tmp/guestfwd
        a
Send data from host: 
        # echo a | nc -U /tmp/guestfwd
Receive data in the guest: 
        # cat /dev/vport0p0


3. "socket-virtconsole" type, edit the guest xml like the following one:
......
<controller type='virtio-serial' index='0'/>
    <console type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/b.sock'/>
      <target type='virtio' port='0'/>
    </console>
......
4. try to communicate between the guest and host.
In the guest:  # agetty /dev/hvc0 9600 vt100
In the host:
       install socat tool.
               # ./socat /var/lib/libvirt/qemu/b.sock -
 
    you will see the login promt list this:
 
        Red Hat Enterprise Linux Server release 6.0 (Santiago)
        Kernel 2.6.32-71.el6.x86_64 on an x86_64
 
        localhost.localdomain login: redhat
        redhat
        password: redhat

5. "pty-virtserialport", edit the guest xml like the following one:
 <controller type='virtio-serial' index='0'/>
        <channel type='pty'>
          <target type='virtio' name='org.linux-kvm.port.1'/>
    </channel>
6, try to communicate between the guest and host.
In the guest, send data:
        # echo a > /dev/vport0p0
In the host to receive the data: 
        # cat /dev/pts/6
        a
In the host to send out a data: 
        # echo "This is from host" > /dev/pts/6
In the guest, receive the data: 
        # cat /dev/vport0p0
        This is from host

Comment 6 Jiri Denemark 2013-12-04 10:26:16 UTC
TestOnly bug for 6.5


Note You need to log in before you can comment on or make changes to this bug.