From patchwork Mon Nov 25 15:49:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 3233001 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D91B5C045B for ; Mon, 25 Nov 2013 15:51:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C9442015B for ; Mon, 25 Nov 2013 15:51:44 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 007D420154 for ; Mon, 25 Nov 2013 15:51:43 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VkyRL-00054T-2H; Mon, 25 Nov 2013 15:51:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VkyRC-0002sy-4b; Mon, 25 Nov 2013 15:51:02 +0000 Received: from mail-pb0-f54.google.com ([209.85.160.54]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VkyR0-0002rE-5s for linux-arm-kernel@lists.infradead.org; Mon, 25 Nov 2013 15:50:51 +0000 Received: by mail-pb0-f54.google.com with SMTP id un15so5934282pbc.41 for ; Mon, 25 Nov 2013 07:50:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DAwTfzpruSo9Td6s61dVYl/79jS+qInEVfVun+45CJE=; b=lvgjXJeouNF4DAN2xAbSom3Ol09QM1Gz8YO/3FTswNgV/sDoEYPEkyvv0efvp2xLNC mmJ1ur2OuXtv1H1nK9VWY9Gs5iVnZ+iVj1KFH9z6kUkln5sc2Vy7cR4oy2GLkHcApSde VBi3yksKVOkjqcjTYnKL1npva2uicCsHw2YkAXIhyNti2v7gk2BCraij4Z3W1tN5wtJ3 P9T6XFBhF5rCFEaDh0UJ0MAizPewNizX5Mv6Gqgu/kIHifAuRhOBfPiIuwn90gjXeUBM 9a0HvD3wmoxnjGGWWCMBMeotS2JrP6oXKh9EmoPojg2uEZgszOqa9dk+zZ+TU7eDRZiu b3xQ== X-Gm-Message-State: ALoCoQm+2rTjOgSqT6I4lvEuiLuFvzQqlOS0wsSaQaqDr/dadcL8j44PYa1EfUJmOAxZpvBN5JCF X-Received: by 10.68.233.135 with SMTP id tw7mr18648880pbc.112.1385394628590; Mon, 25 Nov 2013 07:50:28 -0800 (PST) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id e6sm6039746pbg.4.2013.11.25.07.50.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 07:50:27 -0800 (PST) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [PATCH 1/2] KVM: Add KVM_EXIT_RESET to user space API header Date: Mon, 25 Nov 2013 21:19:58 +0530 Message-Id: <1385394599-15439-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1385394599-15439-1-git-send-email-anup.patel@linaro.org> References: <1385394599-15439-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131125_105050_353214_1413512D X-CRM114-Status: GOOD ( 10.24 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Anup Patel , patches@linaro.org, Marc Zyngier , patches@apm.com, linux-arm-kernel@lists.infradead.org, Christoffer Dall , Pranavkumar Sawargaonkar X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, we don't have an exit reason for VM reset emulation in user space hence this patch adds exit reason KVM_EXIT_RESET for this purpose. This newly added KVM_EXIT_RESET will be used by KVM arm/arm64 in-kernel PSCI support to reset VMs. Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar Acked-by: Christoffer Dall --- include/uapi/linux/kvm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 902f124..64a04cc 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h @@ -171,6 +171,7 @@ struct kvm_pit_config { #define KVM_EXIT_WATCHDOG 21 #define KVM_EXIT_S390_TSCH 22 #define KVM_EXIT_EPR 23 +#define KVM_EXIT_RESET 24 /* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */