Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3239640pxu; Tue, 15 Dec 2020 02:03:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbSSX2KJpxO2rTI9oDtRCxhB7lPJIRwnv+0x9xQ27W6NQw/69R0+VSMErBy6LMh/y5EIMq X-Received: by 2002:a17:906:1916:: with SMTP id a22mr26091789eje.536.1608026602455; Tue, 15 Dec 2020 02:03:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608026602; cv=none; d=google.com; s=arc-20160816; b=JOXRfN7m1T1YwkFm6j9Ag0C2d+1o3JiooTg1CJccqVOG7Wo9sNsOBdz2Ao+zEF5wlB hdhwpMV9LtlngOKLumCn2gKpKXIcc32vhr5LzBcNMfDWuoLDkBHVkr+RJXB+u30OUyHK hS5UqrC2tB947q3CQmeMf8LtcliC3ZuOZzt7wURkwL9vUve7roGJ8dL5aTth7B6p/Txb 3ugGj2z3nrRMovX04PjOEREhWIddsgsjSixZ8LsGlvhBkSQvy2WQf3VfhBXVqDEH94P1 L4nRSAo5hQsERg7HVuzIOThPw+GJ32NAweu4FyQwzYMcARe7O1diGFdMpxE60cy/bNWu QbUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=reExp2Tn+sU0fwniNB3UhV8lrwgQOeTqJk+brPkXU7o=; b=bzb9PUrvlPuk1UOHRUiUo0NWb8OVWpb9wz9wVCHlM+9XeV0f8d921/jeww8Yn7hAFK SOLzN9L0yEbfEfrX/NoesHO+/GwDqDat3G7frKwpHGaJeECkTy/oEiKo0zMpPT1oYzei lROGXaDxTQXASeZDWkhm9UuWykJz4KEHzwQUB6kgfRO1l3RMIUDaCCla4IIIHvnqUPRq ejtK4zsZhJvHSRduh9EC8MqpEzxJQ7+yZJpUeboX0YyY2n4EJfczFXmW9VHJUjipzxac ymmy8iomeB2vPSjTWpKtz1iWh+1AXR4KYOh15BLIFkpEpuPxjcEHtLkuBNzujnsYxNSx gMmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g6pVZtb9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si612479ejp.228.2020.12.15.02.02.58; Tue, 15 Dec 2020 02:03:22 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g6pVZtb9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgLOKAv (ORCPT + 99 others); Tue, 15 Dec 2020 05:00:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:33756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgLOKAf (ORCPT ); Tue, 15 Dec 2020 05:00:35 -0500 Date: Tue, 15 Dec 2020 11:00:57 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1608026394; bh=fjSb0yXxmstyp4ZVxolAKZj+F5mcHDB/k47EK3O9bsk=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=g6pVZtb9f86Sy0mgpPND3TPHRKLLDLC56gwTkdqqU+x++31C9zq3LR4bQk2fW5kAp PUZUgJS19WVqV/lLpS6Q0JFz9RdQosAwp21IGgIjcMMNTqbEcFH0UGl5xTd2+mEcgg 1pJoKu0saL+Ic8OHVCJq/Rd5+vrt3Rj+iVsXAkVQ= From: Greg Kroah-Hartman To: Shuo A Liu Cc: linux-kernel@vger.kernel.org, x86@kernel.org, "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: References: <20201201093853.12070-1-shuo.a.liu@intel.com> <20201201093853.12070-7-shuo.a.liu@intel.com> <20201202021429.GL17702@shuo-intel.sh.intel.com> <20201215095259.GN17702@shuo-intel.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201215095259.GN17702@shuo-intel.sh.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 15, 2020 at 05:52:59PM +0800, Shuo A Liu wrote: > 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? Nope, it's the middle of the merge window, I can't do anything with any new patches until after 5.11-rc1 is out. So I suggest you fix up the current issues and send a new patch series once 5.11-rc1 is released. thanks, greg k-h