From: Thomas Huth Subject: [PATCH 0/2] s390x/kvm: ioctl for reading and writing from/to guest memory Date: Mon, 16 Feb 2015 13:22:16 +0100 Message-ID: <1424089338-14562-1-git-send-email-thuth@linux.vnet.ibm.com> Cc: kvm@vger.kernel.org, pbonzini@redhat.com, agraf@suse.de, cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, Thomas Huth To: qemu-devel@nongnu.org Return-path: Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:48378 "EHLO e06smtp11.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755183AbbBPMXy (ORCPT ); Mon, 16 Feb 2015 07:23:54 -0500 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Feb 2015 12:23:53 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id E86311B08067 for ; Mon, 16 Feb 2015 12:24:01 +0000 (GMT) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t1GCMYtp52166846 for ; Mon, 16 Feb 2015 12:22:34 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t1GCMXYf007727 for ; Mon, 16 Feb 2015 05:22:34 -0700 Sender: kvm-owner@vger.kernel.org List-ID: These two patches enable QEMU to make use of the new KVM_GUEST_MEM_OP ioctl on s390x (see my kernel patch with the title "KVM: s390: Add MEMOP ioctls for reading/writing guest memory" that I've posted on the KVM mailing list). The first patch in this series updates the Linux headers with the new ioctl definitions. This should be replaced with a proper synchronized header update against kvm/next as soon as the kernel part has been accepted. The second patch then uses the ioctl when QEMU has to access the logical memory of a guest. This patch goes on top of my "s390x: rework guest memory access" patch series that has been sent out to the qemu-devel list by Jens Freimann on last thursday. Thomas Huth (2): Update Linux headers with KVM_GUEST_MEM_OP ioctl s390x/mmu: Use ioctl for reading and writing from/to guest memory linux-headers/linux/kvm.h | 21 +++++++++++++++++++++ target-s390x/cpu.h | 7 +++++++ target-s390x/kvm.c | 35 +++++++++++++++++++++++++++++++++++ target-s390x/mmu_helper.c | 9 +++++++++ 4 files changed, 72 insertions(+), 0 deletions(-)