From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on archive.lwn.net X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by archive.lwn.net (Postfix) with ESMTP id 4180E7D043 for ; Mon, 4 Jun 2018 09:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216AbeFDJxu (ORCPT ); Mon, 4 Jun 2018 05:53:50 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:58055 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751930AbeFDJxt (ORCPT ); Mon, 4 Jun 2018 05:53:49 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 01ECD6C361E90; Mon, 4 Jun 2018 17:53:45 +0800 (CST) Received: from [127.0.0.1] (10.142.68.147) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.382.0; Mon, 4 Jun 2018 17:53:44 +0800 Subject: Re: [PATCH v1 2/2] arm/arm64: KVM: Add KVM_GET/SET_VCPU_EVENTS To: Eric Northup CC: , , , "Marc Zyngier" , , Catalin Marinas , , KVM , , , , Linux Kernel Mailing List , References: <1527772139-19665-1-git-send-email-gengdongjiu@huawei.com> <1527772139-19665-3-git-send-email-gengdongjiu@huawei.com> From: gengdongjiu Message-ID: <2d6fda7c-653a-4a36-62fb-4e0fc25767b3@huawei.com> Date: Mon, 4 Jun 2018 17:53:33 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.142.68.147] X-CFilter-Loop: Reflected Sender: linux-doc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On 2018/6/2 5:22, Eric Northup wrote: > On Wed, May 30, 2018 at 10:04 PM Dongjiu Geng wrote: >> >> For the migrating VMs, user space may need to know the exception [...] >> + __u8 pad[6]; >> + __u64 serror_esr; >> + } exception; >> + __u32 reserved[12]; > > It will be easier to re-purpose this in the future if the field is > reserved and is checked that it must be zero. SET_VCPU_EVENTS would > return EINVAL if reserved fields get used until a later meaning is > defined for them. Ok, thanks. I will check the reserved fields when calling SET_VCPU_EVENTS. > >> +}; >> + >> /* If you need to interpret the index values, here is the key: */ >> #define KVM_REG_ARM_COPROC_MASK 0x000000000FFF0000 >> #define KVM_REG_ARM_COPROC_SHIFT 16 >> diff --git a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c >> index 56a0260..71d3841 100644 >> --- a/arch/arm64/kvm/guest.c >> +++ b/arch/arm64/kvm/guest.c >> @@ -289,6 +289,42 @@ int kvm_arch_vcpu_ioctl_set_sregs(struct kvm_vcpu *vcpu, >> return -EINVAL; >> } >> [...] >> -- >> 2.7.4 >> > > . > -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html