Message ID | 1511289434-1551-7-git-send-email-gengdongjiu@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2016160375 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 21 Nov 2017 10:42:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AC3B28F93 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 21 Nov 2017 10:42:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1FF528FAF; Tue, 21 Nov 2017 10:42:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D6FE28F93 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 21 Nov 2017 10:42:45 +0000 (UTC) Received: from localhost ([::1]:33578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1eH60q-0000O7-Q6 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 21 Nov 2017 05:42:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <gengdongjiu@huawei.com>) id 1eH5rG-0001cz-Q6 for qemu-devel@nongnu.org; Tue, 21 Nov 2017 05:32:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <gengdongjiu@huawei.com>) id 1eH5rF-0005mN-Ux for qemu-devel@nongnu.org; Tue, 21 Nov 2017 05:32:50 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2805) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from <gengdongjiu@huawei.com>) id 1eH5r0-0005i8-Pa; Tue, 21 Nov 2017 05:32:35 -0500 Received: from 172.30.72.58 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DLG39785; Tue, 21 Nov 2017 18:31:45 +0800 (CST) Received: from localhost.localdomain (10.143.28.90) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.361.1; Tue, 21 Nov 2017 18:31:35 +0800 From: Dongjiu Geng <gengdongjiu@huawei.com> To: <pbonzini@redhat.com>, <mst@redhat.com>, <imammedo@redhat.com>, <zhaoshenglong@huawei.com>, <peter.maydell@linaro.org>, <mtosatti@redhat.com>, <james.morse@arm.com>, <lersek@redhat.com>, <marc.zyngier@arm.com>, <christoffer.dall@linaro.org>, <rth@twiddle.net>, <ehabkost@redhat.com>, <kvm@vger.kernel.org>, <guohanjun@huawei.com>, <lijinyue@huawei.com>, <huangshaoyu@huawei.com>, <wuquanming@huawei.com>, <zhengqiang10@huawei.com>, <linuxarm@huawei.com>, <qemu-devel@nongnu.org>, <qemu-arm@nongnu.org>, <dingtianhong@huawei.com>, <wangxiongfeng2@huawei.com> Date: Wed, 22 Nov 2017 02:37:08 +0800 Message-ID: <1511289434-1551-7-git-send-email-gengdongjiu@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1511289434-1551-1-git-send-email-gengdongjiu@huawei.com> References: <1511289434-1551-1-git-send-email-gengdongjiu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.143.28.90] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.5A140091.0080, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 730eae1b87a973507ebb3e579f33d610 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 45.249.212.190 Subject: [Qemu-devel] [PATCH RESEND v12 06/12] target-arm: kvm64: detect whether can set vsesr_el2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: gengdongjiu@huawei.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index a16abc8..af8ebc9 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -980,3 +980,9 @@ bool kvm_arm_handle_debug(CPUState *cs, struct kvm_debug_exit_arch *debug_exit) return false; } + +static bool kvm_can_set_vcpu_esr(struct KVMState *state) +{ + int ret = kvm_check_extension(state, KVM_CAP_ARM_INJECT_SERROR_ESR); + return (ret) ? true : false; +}