From patchwork Wed Oct 16 17:02:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 3054771 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 C34F6BF924 for ; Wed, 16 Oct 2013 17:04:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE94920451 for ; Wed, 16 Oct 2013 17:04:53 +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 9DF8A20421 for ; Wed, 16 Oct 2013 17:04:52 +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 1VWUVs-0003pe-C2; Wed, 16 Oct 2013 17:04:00 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWUVc-0007HE-Vn; Wed, 16 Oct 2013 17:03:44 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWUVZ-0007Ep-GB for linux-arm-kernel@lists.infradead.org; Wed, 16 Oct 2013 17:03:42 +0000 Received: by mail-pb0-f46.google.com with SMTP id rq2so1072650pbb.5 for ; Wed, 16 Oct 2013 10:03:20 -0700 (PDT) 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=pIS9Ume039Mm1cOFItW0aLbool1cE8ztFdXmzmfnf/c=; b=UmhZZsaxPtMMI64f3gx45oKFqDfPV4VmBjT4v/18PU+LLhOWHTwGA6F2vezX2IMhvy sgGwNPMMX6Rf5G1mBJHpgqXQPwA4xoVT4zv65CjmRl2RgYhyMi/Y27jB8WZSVJPObgh0 kuQIpKse4/KtovNW4w+zQlE8/IQTp1rmDAKaKKtLIyyNYzjs+n+W4NKsIk1JMavssk1H 8XGVyyIPqWEJIm5EIUr4aYc1insGpA+S/H/iXcGQo8QY+rM3v7ekynqd1EbY8DdVF6fN iZxNwNR1mZgoIcn9DJHM9cXDl0HfKAU936KQQDRw5F3ztHXw1nQGUXoDoFV6D60XHvGQ zUbg== X-Gm-Message-State: ALoCoQndXG4L1m/cHqBhRT/tFRRtBFFGGY34XJTD860McHlZC2a05nZCmA9YuBb1VXQjroCM5Cho X-Received: by 10.66.146.199 with SMTP id te7mr4697644pab.106.1381942999847; Wed, 16 Oct 2013 10:03:19 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id hz10sm92298689pbc.36.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 10:03:18 -0700 (PDT) From: Anup Patel To: kvmarm@lists.cs.columbia.edu Subject: [RFC PATCH 1/5] ARM/ARM64: KVM: Update user space API header for PSCI emulation Date: Wed, 16 Oct 2013 22:32:30 +0530 Message-Id: <1381942954-22388-2-git-send-email-anup.patel@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1381942954-22388-1-git-send-email-anup.patel@linaro.org> References: <1381942954-22388-1-git-send-email-anup.patel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131016_130341_815801_41FBEB49 X-CRM114-Status: GOOD ( 10.55 ) X-Spam-Score: 0.4 (/) Cc: Mark Rutland , linaro-kernel@lists.linaro.org, Russell King , Anup Patel , patches@linaro.org, Marc Zyngier , Catalin Marinas , Will Deacon , 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=-1.7 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 Update user space API interface headers for providing information to user space needed to emulate PSCI function calls in user space (i.e. QEMU or KVMTOOL). Signed-off-by: Anup Patel Signed-off-by: Pranavkumar Sawargaonkar --- include/uapi/linux/kvm.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index e32e776..dae2664 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_PSCI 24 /* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */ @@ -301,6 +302,12 @@ struct kvm_run { struct { __u32 epr; } epr; + /* KVM_EXIT_PSCI */ + struct { + __u32 fn; + __u64 args[7]; + __u64 ret[4]; + } psci; /* Fix the size of the union. */ char padding[256]; };