Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp422793pxb; Tue, 14 Sep 2021 00:02:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylMJ4xhGqoxoZsXN4K0Vlg9I0fqsrdy/ucxg9crEssqJDEd/Gshf8jiL0A4mO5OyDVxU7v X-Received: by 2002:a92:c04c:: with SMTP id o12mr6482245ilf.124.1631602952796; Tue, 14 Sep 2021 00:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631602952; cv=none; d=google.com; s=arc-20160816; b=LDAhFgAZlE50YdpMgxvE/E+8UHD6i+PLpA9Q+GCNJ5Qt3KDCWMbSMcgVWjaZRGL9Lf w7UvFy5YOqEeNiA7fUD+RwN0xlxq07HLNi4JvXhVg8Cof2SEdA4CFDYIcsrDaoAamkMF hRn/JNHXnBNNZ08vPV7bek+ViU5ihRXHIfHeXISf62QDQWoFXJWuhDr7ZafWn8Q/oN6/ Gg3+gT8nKMOs9XwIcsAixxSMjP5w1fUhTfblkgChVsWiUpi0OiSGbI4aINzbWR7gpfc7 SbaOpEntusKeoNkbFeaabf7UyK8+97qY6RpPNmhTxWOsYvm7i7rHOunPx9P1c3lLpauG DD7w== 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=+8PuG4ob3XH9r3H1OwvjAKZp39ngxiQZvisqeiGEzmA=; b=WMpnMSYGvxKxAA1I9rZn45U2po1sfW8VAm6JeIxsQNIGtGqO8dC9T23oG1Yo3ZpvHw 8oWaBBbV+TYFy8aqGPVmULfBdFBwjedy8MvBCUWtdZMERFrKW1ZP/GXqDSXL94Okt46L JYIqv1PgtxrmhVf+0PmW1IV9tOgNluAJepPBFEcCtGvgm73enWLhJxZ7mhJz5poYLA4u zRpipLul7qhUUz+nkByyurhvJAo6IxXjFjYrNUeMHxOwxeZaZb10Z+ZqV45dLwYxcx3m G1qKccDmyDgjkTfuMo2pVAhIyl7/UNTdquy6p9xrVloWVQb1ts0DzUgL5/9X6EIzDdGR IBwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jRdFaAlw; 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 m2si10078059ili.39.2021.09.14.00.02.20; Tue, 14 Sep 2021 00:02:32 -0700 (PDT) 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=jRdFaAlw; 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 S240407AbhINHCq (ORCPT + 99 others); Tue, 14 Sep 2021 03:02:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:53392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240419AbhINHCK (ORCPT ); Tue, 14 Sep 2021 03:02:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C8E2610E6; Tue, 14 Sep 2021 07:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631602851; bh=yVMhOyi2NlCerH8Ao+NJSMjK/cz1/pt+EzZEoLHb3fc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jRdFaAlw/wmN3zMMzuRHAzJ4Ugc+65HAcdDPhWpYqEeKQ/15VVDORRhB7rrvToXms iUxFSvrG9oPpKrTuXx6pL3WWHJ2MzaldMlZL9sFJTT+M7AOaX16qSejenwgpCZ/RsP jYDXfFic+NpIVtIr8IzrDRE+wzgmOAtkUSzei3mI= Date: Tue, 14 Sep 2021 09:00:48 +0200 From: Greg KH To: Fei Li Cc: linux-kernel@vger.kernel.org, yu1.wang@intel.com, shuox.liu@gmail.com Subject: Re: [PATCH v4 2/2] virt: acrn: Introduce interfaces for virtual device creating/destroying Message-ID: References: <20210914062627.16431-1-fei1.li@intel.com> <20210914062627.16431-3-fei1.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210914062627.16431-3-fei1.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 02:26:27PM +0800, Fei Li wrote: > +struct acrn_vdev { > + /* > + * the identifier of the device, the low 32 bits represent the vendor > + * id and device id of PCI device and the high 32 bits represent the > + * device number of the legacy device > + */ > + union { > + __u64 value; > + struct { > + __u16 vendor; > + __u16 device; > + __u32 legacy_id; What is the endian of these fields? Please always specify them. thanks, greg k-h