Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3236463pxu; Tue, 15 Dec 2020 01:58:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+o+R8YhD4qNUz6nDdu4mgnuM5ZnmBUozUQymf6O0V1sUSlSDyWPMafdKmHsJZ7JXKBLss X-Received: by 2002:a17:906:e15:: with SMTP id l21mr26325612eji.509.1608026282494; Tue, 15 Dec 2020 01:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608026282; cv=none; d=google.com; s=arc-20160816; b=WoxkaNsX4xB+oZQXtFbDOC21tlAFgKxz5TPV5Df6sI3ctSbFfjHTF3lKvW20OrNnQb I15o+F43FMyYaLFD267xMe/B2FOrBcRAoRc5JLbWLPRIRIBarQj4U1yWqsbqsAGAG4K9 bcOIw7okjlRmH8YSgLclFyoXLBYmQuNsYknxe/hEFFDpUb1X7/bsVSOYtGx71eQtNj2o KGToid5iNSeZpivQlgozZDi98DGQZhBgD7D+TySg7rkzAWx8gVrqdoDthpCmWWf3HiJb AWCa6Dy3sMi2gbAZo6kaIa9XTw8DrPbqayk6loRdEA5jquofQ8iBk+tkJaenhJKRyqsP ZPFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=1h9H7P1FqP0S3cTMC2F+PopG7xMesG1+OtDXuFeuEI4=; b=vfhfTxzeRD/f6N8qm5SgGLOf5QhyziAmdJJMp102tFS6NtHIk9QSe0AcGR4Ld0uxr5 86ViVpyo55/QudlpXCUk/S5R+QhySeD2U6kuw9NzFpibsr1uAehYHAPFv0cVMts2NIJ6 p1IsJ2Zagaqu5BN4my9E65f758i3I00DdZ1RkmKEp+HoXIM2IsCd7YMJpWvyOMJ+X3Wn dFqYENZKQk6eVrNVdhjhKNGq/+4gR1Lkqj6mafUQHIxID3l5isxVD7xRDCKSoYqK3W7Q SVRwvS1ex74n8dwCxu1pXOT+Xiue5yOhjbdrDHoIg7d0Vb+5pdkwd1PjHLgImuTxpy1F 67kw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si611684ejb.640.2020.12.15.01.57.39; Tue, 15 Dec 2020 01:58:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727362AbgLOJxu (ORCPT + 99 others); Tue, 15 Dec 2020 04:53:50 -0500 Received: from mga02.intel.com ([134.134.136.20]:43070 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727153AbgLOJxt (ORCPT ); Tue, 15 Dec 2020 04:53:49 -0500 IronPort-SDR: nBkT5Q6BJZCye6/GDQdkpKvwD+tp8EzPH0lmZzrD2NezgS0y1PzIoekJ0oNdAlDfVs2MK9vwPK DSYyXzA7QUqw== X-IronPort-AV: E=McAfee;i="6000,8403,9835"; a="161907178" X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="161907178" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2020 01:53:05 -0800 IronPort-SDR: /blN8HYVrJOQakmujxo8bCtEQKyDDWI1UAlN4SHf4Y7VEdrA5btq08C0tOfvlPiawZuXEyyKx5 yzcvQ/dRu/Cg== X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="411815770" Received: from shuo-intel.sh.intel.com (HELO localhost) ([10.239.154.30]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2020 01:53:01 -0800 Date: Tue, 15 Dec 2020 17:52:59 +0800 From: Shuo A Liu To: Greg Kroah-Hartman Cc: , , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Sean Christopherson , Yu Wang , "Reinette Chatre" , Zhi Wang , "Zhenyu Wang" Subject: Re: [PATCH v6 06/18] virt: acrn: Introduce VM management interfaces Message-ID: <20201215095259.GN17702@shuo-intel.sh.intel.com> References: <20201201093853.12070-1-shuo.a.liu@intel.com> <20201201093853.12070-7-shuo.a.liu@intel.com> <20201202021429.GL17702@shuo-intel.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201202021429.GL17702@shuo-intel.sh.intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2.Dec'20 at 10:14:29 +0800, Shuo A Liu wrote: >On Tue 1.Dec'20 at 11:09:47 +0100, Greg Kroah-Hartman wrote: >>On Tue, Dec 01, 2020 at 05:38:41PM +0800, shuo.a.liu@intel.com wrote: >>>+ vm_param->reserved0 = 0; >>>+ vm_param->reserved1 = 0; >> >>NO! >> >>This means that userspace can put whatever crud they want in those >>fields, and you will happily zero it out. Then, when those reserved >>fields are wanted to be used in the future, you will take those values >>from userspace and accept them as a valid value. But, since userspace >>was sending crud before, now you will take that crud and do something >>with it. >> >>TEST IT to verify that it is zero, that way userspace gets it right the >>first time, and you don't get it wrong later, as you can not change it >>later. > >OK. Thanks for the elaboration. I will test it and return -EINVAL if >it is not zero. > Hi Greg, Would you like to review other patches in this series on this version? This version got only this one comment, so doesn't have too much update. I can send out a new version if you prefer to. Thanks for review. shuo