Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3658633yba; Mon, 29 Apr 2019 06:27:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzchPMtbmbNUgVWUY9XCPk2g68Nl6963mJ0Ldxt+lOCe9czXs+diTZOVl9EAkDynWhJwNPr X-Received: by 2002:a63:40c2:: with SMTP id n185mr24834994pga.364.1556544433758; Mon, 29 Apr 2019 06:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556544433; cv=none; d=google.com; s=arc-20160816; b=j8hJBRLpO2vQl+ho8pmFNeFQjq+Ls7kF9Fyd/8dSmYcI3+Jo6Y9yjgel9hhrQY233d Nhfvtj2Gbq2ELsmc50qRtmQzohnBs7kJ+rQPIVBjMwEoiwa8OTJY+3Z3cvPC4JtDSq8V bqw3X0tGOyUasX1BNZUheqyK1R3IXTj5ZNP5mUNT4/OMHljmSSZF5em3MQctSTZwN/dz 6rDs94EMIa1mFsRl8grY8D6mnCGbNO/0zmIWb+T+RRix9RTVCzTJFVjIre5BXIoqmZyq fBGh+V8xyTwzbBw5C2iz6L8L46FDUBJMU/fKVo8NlEYz15WyhSAd82zncrg0ZAQ09uFW hBcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Y5WLFiQp7YcO3cLQ6iGD2FA5Xsp61XMaA+Slpgd3+hg=; b=Dwnjjte72ZMsh01hqPP/sK66LcRqAcMxyPMleDBNq0knknLRUvbL9gMlKG58tGypSG I9xj9Lb+18umNq7Zo/pp7PorL1xx4K/zgP1M76zdTfqC5xHemPM7sd3Pv1T1qJYeKkSW UyMn4p4In/UbQu22Gipiqg150/cpIsALi0pAlN/Rt5SdUzi2JbLXOHNxVw2eM7qZ0IzB 32h5JI3nTRHeHLzXoJ2rFuAI6pB7BLm8pAm0S4js2I0cVFQSuHrWnW/hrG0GeO6GqO7v /MTH+PuzVez/chv6tXcomHnFj3lRZnTqZyCvu2JXaP3J3LeCCQIsq3V4Z4G0DS72gK9H XzTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si20347981pgv.51.2019.04.29.06.26.58; Mon, 29 Apr 2019 06:27:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728239AbfD2NZr (ORCPT + 99 others); Mon, 29 Apr 2019 09:25:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725838AbfD2NZr (ORCPT ); Mon, 29 Apr 2019 09:25:47 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 22A108667B; Mon, 29 Apr 2019 13:25:47 +0000 (UTC) Received: from flask (unknown [10.40.205.238]) by smtp.corp.redhat.com (Postfix) with SMTP id 0F5A34387; Mon, 29 Apr 2019 13:25:44 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Mon, 29 Apr 2019 15:25:44 +0200 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Paolo Bonzini , Cornelia Huck Subject: [PATCH] Revert "KVM: doc: Document the life cycle of a VM and its resources" Date: Mon, 29 Apr 2019 15:25:35 +0200 Message-Id: <20190429132535.8302-1-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 29 Apr 2019 13:25:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 919f6cd8bb2fe7151f8aecebc3b3d1ca2567396e. The patch was applied twice. The first commit is eca6be566d47029f945a5f8e1c94d374e31df2ca. Reported-by: Cornelia Huck Signed-off-by: Radim Krčmář --- Documentation/virtual/kvm/api.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index b62ad0d94234..26dc1280b49b 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt @@ -69,23 +69,6 @@ by and on behalf of the VM's process may not be freed/unaccounted when the VM is shut down. -It is important to note that althought VM ioctls may only be issued from -the process that created the VM, a VM's lifecycle is associated with its -file descriptor, not its creator (process). In other words, the VM and -its resources, *including the associated address space*, are not freed -until the last reference to the VM's file descriptor has been released. -For example, if fork() is issued after ioctl(KVM_CREATE_VM), the VM will -not be freed until both the parent (original) process and its child have -put their references to the VM's file descriptor. - -Because a VM's resources are not freed until the last reference to its -file descriptor is released, creating additional references to a VM via -via fork(), dup(), etc... without careful consideration is strongly -discouraged and may have unwanted side effects, e.g. memory allocated -by and on behalf of the VM's process may not be freed/unaccounted when -the VM is shut down. - - 3. Extensions ------------- -- 2.20.1