From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq7DJ-0003I1-4d for qemu-devel@nongnu.org; Sun, 07 Aug 2011 13:32:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qq7DH-0000f6-Pj for qemu-devel@nongnu.org; Sun, 07 Aug 2011 13:32:36 -0400 Received: from mail.serverraum.org ([78.47.150.89]:54480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qq7DH-0000dl-K7 for qemu-devel@nongnu.org; Sun, 07 Aug 2011 13:32:35 -0400 From: Michael Walle Date: Sun, 7 Aug 2011 19:29:16 +0200 Message-Id: <1312738160-28961-1-git-send-email-michael@walle.cc> Subject: [Qemu-devel] [PATCH 0/4] usb/hid: bugfixes, more on usb and hid split List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Michael Walle , Gerd Hoffmann This USB patchset moves the VM state stuff from usb-hid.c to hid.c, so it can be reused by other devices. There is one major drawback: i need to increase the vmstate version_id of the usb-hid device. I don't know if you agree with this change. Alternatively, we could add a load_old function which just skips old versions. Michael Walle (4): hid: register kbd hander in init() hid: introduce hid vmstate macros usb-hid: use hid vmstate macro milkymist-softusb: use hid code directly hw/hid.c | 63 ++++++++++++++++++++++++- hw/hw.h | 20 ++++++++ hw/milkymist-softusb.c | 122 +++++++++++++++--------------------------------- hw/usb-hid.c | 51 +++----------------- 4 files changed, 127 insertions(+), 129 deletions(-) -- 1.7.2.5