From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTTmv-0002gL-CB for qemu-devel@nongnu.org; Wed, 10 Feb 2016 07:22:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTTms-0006Pn-7G for qemu-devel@nongnu.org; Wed, 10 Feb 2016 07:22:29 -0500 From: Marcel Apfelbaum Date: Wed, 10 Feb 2016 14:22:19 +0200 Message-Id: <1455106941-2934-1-git-send-email-marcel@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] hw/virtio: fix double use of a virtio flag List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: marcel@redhat.com, lvivier@redhat.com, jasowang@redhat.com, qemu-stable@nongnu.org, mst@redhat.com To the obvious question of "how did that happen?" I can say we had an unlucky break. Both Jason and me worked on a new different virtio features in the same time, and they were both merged in the same pull request. We both saw BIT 3 as the last used https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg03041.html Commits 1811e64c and a6df8adf use the same virtio feature bit 4 for different features. Fix it by using different bits. While at it, group all the virtio flags into an enum to avoid that in the feature. Marcel Apfelbaum (2): hw/virtio: fix double use of a virtio flag hw/virtio: group virtio flags into an enum hw/virtio/virtio-pci.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) -- 2.4.3