Message ID | 20240710234222.2333120-7-jthoughton@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C60D2C3DA42 for <linux-arm-kernel@archiver.kernel.org>; Wed, 10 Jul 2024 23:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W1e4HHE4z+5Knov3l2/RvFGqy44M6oXcmkh1U5rufQM=; b=TNLgoowvuZR+9O/+zAFJ/q87Zr 39kFGXiD5SxhgRVlZCKKnFiai4sSoXrWSTcQLrKt3nS24ItsPQT/CMLuTfieEFY7zeVqsMxhZ4jSG 1ZvnBf8kvNEoRKubM+v3BqbwQ18V4HVaQnb1qYX5OEfnVcwFlcCbPA2YTPA2LttUrOzfNEVs30SU+ MEa5chZTHrrQFHEk2Kol/Ve2EINOCq3mXBNHc8pGS4G/W7p/GNrGL8eyW99EKH4MFVE37ObT6z9Kg 3u/d7TOugiZ97+l4p8SwOicC47UqQLneF6Wu9wtkBAlNOyPXUS5iHga6jPbjY+I9ZwReetfSTT4vJ ePyKuhrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRgzP-0000000C8HM-3FAP; Wed, 10 Jul 2024 23:44:47 +0000 Received: from mail-yw1-x114a.google.com ([2607:f8b0:4864:20::114a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRgxR-0000000C7BK-2N8f for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 23:42:47 +0000 Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-64b5588bcafso5499597b3.1 for <linux-arm-kernel@lists.infradead.org>; Wed, 10 Jul 2024 16:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720654964; x=1721259764; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=W1e4HHE4z+5Knov3l2/RvFGqy44M6oXcmkh1U5rufQM=; b=iFIBbgPvdvZ2YtR00jSJENVZ/gmREyioUC87er5oxwCUiSHQZNnc+FQjk3C+ZhtxII fxxrdCDtJedWsSF+NugQXC45cagcVm4Cm5J0Mih7Qv2mgb9treHMgqEJThdHKmlyGo9q ukwvXThenDg3iygO2NtoahcfxWgoQuKZ91zxAI+kz5EkSxLCZJKZuodj4AcUea45SFau 01CTEsY4C6NOh0IBrzggSNwNfwiD2OnUgG/x5C8Wzegd7p3ynDZTh1rsRa//IKooYOjV Bl7vf6iOdvqRihLGLO4lfLLi382eeyR5ZtGf3hjGft10cKMr67qxHJk8uNjjb6Tn8NC2 eYaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720654964; x=1721259764; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=W1e4HHE4z+5Knov3l2/RvFGqy44M6oXcmkh1U5rufQM=; b=f7SCl5iQeSgmk8bVDkOBCLuAH3WHWkpja+Gb3wQtLSBACRwFFUvjUGWG4vf19Iz2cF Gq2Erkk2VAk9bGstEPzL2E5rz2cSayPggdCM+oqiQS6d9HRbBqsAvSyv+ZjF/upb67kk uK/IqwRlUVZeIsDEpQBePimtPYU9wpNJ+wRf6lyT/fmZ6eE346uIG1ldpLeLrosBP2/H imR/2xk9qReB7cRNpdYu8nhXWAdZVTcRm+6omnUZwJNhJnAqjoVHSjyM71Ktgz/1k2XD HRdrlrUs++pU+4CQhZiVsaivmLm1kHCnGDNuERcCbK6CDtVkVOyaGZ7RkVNkjgTy3p1P oE2Q== X-Forwarded-Encrypted: i=1; AJvYcCXUDxe4VyvxJjKMPNUTLA6X+xccVe0LXv8hxR919V+yefety3s6+Fw7QBp+gQ05Eaae3gafAD60q/wRUTUisQdkii18R9U6Ru5tCR13LsUkaaUlcrI= X-Gm-Message-State: AOJu0Yye0SHR0rkkBf+SZdF+L3CgJCEmLkzpFd7uVAhHuIQB1oPaGdc1 /sghoDuUNNrY0/5J+iDWy4ICpzWh8NhUq8n5bL3NZItG2yL+sNJbfMBKp4qsRu55Iy4cJY33DVM WSVmI+SGLOkBphbiRPQ== X-Google-Smtp-Source: AGHT+IH5NTISR7DBZbSKRJUHRXFWyLuVrVBePrqFfNwytKF1BLIU+MNslDD3lgHeZpjWWwkTnE/TGMGwZ5jaEHpH X-Received: from jthoughton.c.googlers.com ([fda3:e722:ac3:cc00:14:4d90:c0a8:2a4f]) (user=jthoughton job=sendgmr) by 2002:a05:690c:7244:b0:62f:22cd:7082 with SMTP id 00721157ae682-658f01f530bmr1591717b3.5.1720654963909; Wed, 10 Jul 2024 16:42:43 -0700 (PDT) Date: Wed, 10 Jul 2024 23:42:10 +0000 In-Reply-To: <20240710234222.2333120-1-jthoughton@google.com> Mime-Version: 1.0 References: <20240710234222.2333120-1-jthoughton@google.com> X-Mailer: git-send-email 2.45.2.993.g49e7a77208-goog Message-ID: <20240710234222.2333120-7-jthoughton@google.com> Subject: [RFC PATCH 06/18] KVM: Add KVM_MEMORY_EXIT_FLAG_USERFAULT From: James Houghton <jthoughton@google.com> To: Paolo Bonzini <pbonzini@redhat.com> Cc: Marc Zyngier <maz@kernel.org>, Oliver Upton <oliver.upton@linux.dev>, James Morse <james.morse@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Zenghui Yu <yuzenghui@huawei.com>, Sean Christopherson <seanjc@google.com>, Shuah Khan <shuah@kernel.org>, Peter Xu <peterx@redhat.org>, Axel Rasmussen <axelrasmussen@google.com>, David Matlack <dmatlack@google.com>, James Houghton <jthoughton@google.com>, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_164245_665486_51B092E0 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: Post-copy live migration for guest_memfd
|
expand
|
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index c84c24a9678e..6aa99b4587c6 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -429,6 +429,7 @@ struct kvm_run { /* KVM_EXIT_MEMORY_FAULT */ struct { #define KVM_MEMORY_EXIT_FLAG_PRIVATE (1ULL << 3) +#define KVM_MEMORY_EXIT_FLAG_USERFAULT (1ULL << 4) __u64 flags; __u64 gpa; __u64 size;
This is needed to support returning to userspace when a vCPU attempts to access a userfault gfn. Signed-off-by: James Houghton <jthoughton@google.com> --- include/uapi/linux/kvm.h | 1 + 1 file changed, 1 insertion(+)