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: 21745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5C9E623A3F for ; Mon, 25 Nov 2013 15:50:30 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id e14sf14806947iej.0 for ; Mon, 25 Nov 2013 07:50:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=DAwTfzpruSo9Td6s61dVYl/79jS+qInEVfVun+45CJE=; b=fMHCXkaI9flkKQa+wth8KjMgAx/0pv81Fk17g61b8Ujv3Ch8xBXJdZLCTM17KZPqIe yje6p6r3DAjJN7G37nUNmG0IwTMjJ1FJWawLqZYXaB51fZ18vCr+mj9XsKZHAU6915Ii eHWaiKficBXij4mmhV1TcjfDrPq8TwkZ4FufRfWJ+IA8TW9LFSqZsk35NjWjPktD3410 Su3audWaB4F3qbl7mI2bWG8v3zQ5WrdeY6RpYUhI5WsS5yze5lM0cySzuTVq+rTy9gKt aZY0Nwdi5OlVXfGEtdxSWu+4k3gbAQfRrOuRHLg3uLwKMHFOfCPKni/aK3CGJyRXa9id jWgQ== X-Gm-Message-State: ALoCoQl25xg5afkCnTgeSWs7sMazu52JTAW5Je8rBCaOEngSpluY1fJMByi+LC9j7snOeVLhDAJn X-Received: by 10.182.61.77 with SMTP id n13mr9365572obr.34.1385394630010; Mon, 25 Nov 2013 07:50:30 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.231 with SMTP id r7ls247405qes.78.gmail; Mon, 25 Nov 2013 07:50:29 -0800 (PST) X-Received: by 10.220.144.80 with SMTP id y16mr27033108vcu.4.1385394629910; Mon, 25 Nov 2013 07:50:29 -0800 (PST) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by mx.google.com with ESMTPS id ta5si18049390veb.31.2013.11.25.07.50.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 07:50:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.174; Received: by mail-vc0-f174.google.com with SMTP id id10so2805647vcb.19 for ; Mon, 25 Nov 2013 07:50:29 -0800 (PST) X-Received: by 10.220.17.131 with SMTP id s3mr3894246vca.20.1385394629842; Mon, 25 Nov 2013 07:50:29 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp142966vcz; Mon, 25 Nov 2013 07:50:29 -0800 (PST) X-Received: by 10.68.211.1 with SMTP id my1mr18873588pbc.55.1385394629024; Mon, 25 Nov 2013 07:50:29 -0800 (PST) Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by mx.google.com with ESMTPS id sj5si28104775pab.255.2013.11.25.07.50.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 07:50:29 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.45 is neither permitted nor denied by best guess record for domain of anup.patel@linaro.org) client-ip=209.85.160.45; Received: by mail-pb0-f45.google.com with SMTP id rp16so5937898pbb.4 for ; Mon, 25 Nov 2013 07:50:28 -0800 (PST) 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 Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, linaro-kernel@lists.linaro.org, patches@apm.com, Christoffer Dall , Marc Zyngier , Rob Herring , Pranavkumar Sawargaonkar , Anup Patel 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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anup.patel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. */