Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp124635pxb; Wed, 4 Nov 2020 16:47:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJx06u5qwjPwHIsoGDQM4RKHr3N/ihMPwCLJORNcsL9l4Uyox+lXnlCSDp7mvi21+IcO89be X-Received: by 2002:a50:951e:: with SMTP id u30mr484614eda.197.1604537243466; Wed, 04 Nov 2020 16:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604537243; cv=none; d=google.com; s=arc-20160816; b=eWNnCnoKzrxI1ste1W1fy1e1JzbiUySywDXs3C3ckN4BMFQ5vU5WGInizOo8D3+s8B Qby7LB2Iu1ne1UqdgFsJ2tKt2oYlMlQwjDsX7pRpMh5fjvBolxWK/saSzCkBZRuqL5NU DmeIrtWQWV7vP13uIaAQVbOy4MBPsgM+nFrc0i9DZ34yvYYsdFa2qo7zyOc+1IGmWzR4 CWWihEr1O16eV8CvJQCwzBwL/eRNXfOLqTQ6lzPKMCI/ENE0ygoX2CHy/SRi9CzKfbUX u3ETN+ezwTivbvYo0esj/qX+VIbUY25Y3Cos1srVlYI4Dp3ndHsmosdtuFug7WGGdlLW beFg== 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:date:dkim-signature; bh=ZbwXTUDLqTNlLJ/EDU7cR3zB1Y6MrSi4Qh7LtXWRADU=; b=wbY+tlr/3YEPCTYkwZR+abY+xTN8CQM+Rmo27lMV92/eCKyP3FMpe+M33fuJNy3iWw B05EtPyCNwG+eO6aY+uVfWM5rzijQK4ijTdQ116Gz6d9Q1hrAMriMmuV+hIGcsn21jCr 71vyWWMyduHhR22NtAFg9bPwd6Kqftwt/YLe0NQhoKRyts5/953jlVO1O2/s93fBtONA dGKtxX1eDXMjBS/cygCJFTOFrRxrjdYdCMH9W4uH/3Vsakk9h+tdKwoZK8FX3W/oikPP OjA81Z5F6oj6wgRF44eQsabRqbzMgdw21WCu+fvMv8dz4CB0mF59OYQSpuJRXY+XeMqp 7Rjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fkJ31z5D; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si2441343ejs.498.2020.11.04.16.46.59; Wed, 04 Nov 2020 16:47:23 -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=@kernel.org header.s=default header.b=fkJ31z5D; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730867AbgKDTC1 (ORCPT + 99 others); Wed, 4 Nov 2020 14:02:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:36282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgKDTBp (ORCPT ); Wed, 4 Nov 2020 14:01:45 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 43999206D9; Wed, 4 Nov 2020 19:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604516505; bh=cTiGqgqGpsKodqEvibMS49L3xkyozODpNheifT9AKdk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fkJ31z5D7eaYLl6h8W93tCy20DDgfBYHC6f1dozo3hhtKvFx+bKzME29n2+dyIk+7 M0SglrpSONjRUC6wPDjlY/wqN0Y2zcPBgUKeuD5Ba6i7cXHFEdlmK622WlorDcBUnj CPK7xhmqlBhvGvmQR++JNg16kjYyvdKRLWWIQRYg= Date: Wed, 4 Nov 2020 20:02:35 +0100 From: Greg Kroah-Hartman To: shuo.a.liu@intel.com 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 v5 06/17] virt: acrn: Introduce VM management interfaces Message-ID: <20201104190235.GA2855400@kroah.com> References: <20201019061803.13298-1-shuo.a.liu@intel.com> <20201019061803.13298-7-shuo.a.liu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201019061803.13298-7-shuo.a.liu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 19, 2020 at 02:17:52PM +0800, shuo.a.liu@intel.com wrote: > --- /dev/null > +++ b/include/uapi/linux/acrn.h > @@ -0,0 +1,56 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > +/* > + * Userspace interface for /dev/acrn_hsm - ACRN Hypervisor Service Module > + * > + * This file can be used by applications that need to communicate with the HSM > + * via the ioctl interface. > + */ > + > +#ifndef _UAPI_ACRN_H > +#define _UAPI_ACRN_H > + > +#include > + > +/** > + * struct acrn_vm_creation - Info to create a User VM > + * @vmid: User VM ID returned from the hypervisor > + * @reserved0: Reserved > + * @vcpu_num: Number of vCPU in the VM. Return from hypervisor. > + * @reserved1: Reserved > + * @uuid: UUID of the VM. Pass to hypervisor directly. > + * @vm_flag: Flag of the VM creating. Pass to hypervisor directly. > + * @ioreq_buf: Service VM GPA of I/O request buffer. Pass to > + * hypervisor directly. > + * @cpu_affinity: CPU affinity of the VM. Pass to hypervisor directly. > + * @reserved2: Reserved Reserved and must be 0? What are they reserved for? Same for all of the reserved fields, why? > + */ > +struct acrn_vm_creation { > + __u16 vmid; > + __u16 reserved0; > + __u16 vcpu_num; > + __u16 reserved1; > + __u8 uuid[16]; We have a userspace-visable uid structure in include/uapi/uuid.h, why not use that? thanks, greg k-h