Received: from eggs.gnu.org ([208.118.235.92]:45941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1mAM-0000ST-Jo for qemu-devel@nongnu.org; Sat, 02 Feb 2013 18:06:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U1mAL-0000jS-DU for qemu-devel@nongnu.org; Sat, 02 Feb 2013 18:06:34 -0500 Received: from e9.ny.us.ibm.com ([32.97.182.139]:40913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U1mAL-0000jC-9i for qemu-devel@nongnu.org; Sat, 02 Feb 2013 18:06:33 -0500 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 2 Feb 2013 18:06:31 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 16D9D38C8042 for ; Sat, 2 Feb 2013 18:06:29 -0500 (EST) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r12N6SC3256544 for ; Sat, 2 Feb 2013 18:06:28 -0500 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r12N8nkA007894 for ; Sat, 2 Feb 2013 16:08:49 -0700 From: Anthony Liguori Date: Sat, 2 Feb 2013 17:06:21 -0600 Message-Id: <1359846384-3771-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 0/2] virtio-net: fix config size for older guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Tokarev virtio-net multiqueue added a new field to the config layout. The config layout is rounded up to the nearest power of 2 and this field caused field causes the size to go from 8 bytes to 16 bytes. For reasons unknown, the increase in config size causes the Windows virtio-net driver to fail. This is probably a bug in the driver but it exposes a larger bug in QEMU. While we disable features for compatibility machines, we always use the latest config size. This presents a slightly different machine model than what we should be exposing. This series fixes this specific problem such that -M pc-1.3 should work again with the Windows drivers. -M pc will still fail. We need to find a better way to do this but in absence of a nicer approach this seems likes a good compromise for 1.4. I think we need to choose something like the MAX() config size required by all of the enabled host features. Besides -M pc-1.3, another work around would be: -global virtio-net-pci.mq=off This should work after this patch series is applied. We can put this work around in the release notes as suggested for users of the virtio-win drivers until they are fixed. Reported-by: Michael Tokarev FYI: only lightly tested on my end but so far, it seems to work.