From patchwork Mon Jan 17 17:17:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 484141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0HHHtDj003377 for ; Mon, 17 Jan 2011 17:17:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753353Ab1AQRRv (ORCPT ); Mon, 17 Jan 2011 12:17:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12765 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131Ab1AQRRu (ORCPT ); Mon, 17 Jan 2011 12:17:50 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0HHHoh0011516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jan 2011 12:17:50 -0500 Received: from s20.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p0HHHnZO013206; Mon, 17 Jan 2011 12:17:49 -0500 From: Alex Williamson Subject: [PATCH v2] device-assignment: Properly terminate vmsd.fields To: kvm@vger.kernel.org Cc: alex.williamson@redhat.com, quintela@redhat.com, mst@redhat.com Date: Mon, 17 Jan 2011 10:17:49 -0700 Message-ID: <20110117171218.29227.19416.stgit@s20.home> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 17 Jan 2011 17:17:56 +0000 (UTC) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index e97f565..0925fa8 100644 --- a/hw/device-assignment.c +++ b/hw/device-assignment.c @@ -1697,7 +1697,10 @@ static void assigned_dev_unregister_msix_mmio(AssignedDevice *dev) } static const VMStateDescription vmstate_assigned_device = { - .name = "pci-assign" + .name = "pci-assign", + .fields = (VMStateField []) { + VMSTATE_END_OF_LIST() + } }; static void reset_assigned_device(DeviceState *dev)