From patchwork Fri Feb 15 20:48:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Christopherson X-Patchwork-Id: 10815805 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C8F42922 for ; Fri, 15 Feb 2019 20:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B955C2FDFB for ; Fri, 15 Feb 2019 20:48:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB0E52FF61; Fri, 15 Feb 2019 20:48:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AC2F2FDFB for ; Fri, 15 Feb 2019 20:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390649AbfBOUsm (ORCPT ); Fri, 15 Feb 2019 15:48:42 -0500 Received: from mga02.intel.com ([134.134.136.20]:44772 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbfBOUsl (ORCPT ); Fri, 15 Feb 2019 15:48:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2019 12:48:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,373,1544515200"; d="scan'208";a="118288677" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.14]) by orsmga008.jf.intel.com with ESMTP; 15 Feb 2019 12:48:41 -0800 From: Sean Christopherson To: Paolo Bonzini , =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= Cc: kvm@vger.kernel.org Subject: [PATCH 0/3] KVM: Fix device ioctl bug and update docs Date: Fri, 15 Feb 2019 12:48:37 -0800 Message-Id: <20190215204840.20070-1-sean.j.christopherson@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Patch 2/3 contains the only real code change, which adds a check to the device ioctl to reject the ioctl if the issuer is not the same process that created VM which owns said device. The bulk of the patches are to tweak and enhance KVM's API documentation. This series was prompted by the recent series to add memcg accounting to KVM's kernel allocation[1], Paolo's comment that KVM allows creating multiple VM's in a single process[2], and work on an unrelated project that uses a similar file descriptor approach for managing an API. [1] https://patchwork.kernel.org/patch/10806707 [2] https://lkml.kernel.org/r/f23265d4-528e-3bd4-011f-4d7b8f3281db@redhat.com Sean Christopherson (3): KVM: doc: Fix incorrect word ordering regarding supported use of APIs KVM: Reject device ioctls from processes other than the VM's creator KVM: doc: Document the life cycle of a VM and its resources Documentation/virtual/kvm/api.txt | 48 ++++++++++++++++++++++--------- virt/kvm/kvm_main.c | 3 ++ 2 files changed, 38 insertions(+), 13 deletions(-)