qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH for-2.1 1/1] virtio-serial-bus: keep port 0 rese


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH for-2.1 1/1] virtio-serial-bus: keep port 0 reserved for virtconsole even on unplug
Date: Tue, 15 Jul 2014 11:29:15 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Il 15/07/2014 11:23, Amit Shah ha scritto:
     i = port_id / 32;

This can also be moved inside the if.

Paolo

-    vser->ports_map[i] &= ~(1U << (port_id % 32));
+    if (port_id) {
+        /*
+         * Don't mark port 0 removed -- we explicitly reserve it for
+         * backward compat with older guests, and a device unplug of
+         * virtconsole removes the reservation.
+         */
+        vser->ports_map[i] &= ~(1U << (port_id % 32));
+    }




reply via email to

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