Received: by 2002:a19:711a:0:0:0:0:0 with SMTP id m26csp4110706lfc; Tue, 2 Jun 2020 07:08:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKX+5e8zjbyB1OZMJ4jFZqaSLPatVFwAsiY90sMfDVzQISh574wbYH3c/ZvWSqmtjFGhID X-Received: by 2002:a05:6214:1925:: with SMTP id es5mr12701260qvb.165.1591106920032; Tue, 02 Jun 2020 07:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591106920; cv=none; d=google.com; s=arc-20160816; b=PzUt7jDztcuDsu6IOL1ofDQs8T8Ti0PccINpL27N/hX5htkl37t0U0RSbDTAKPathB jSa5d+9yQaW0liPK2qgx61Lx6AWNKDtUtomgjzgkc+bCqKAVMlGYu0evFnlT3BzS63rx MsLbtl7VMS6ov9A0YDZVBaXweoK/hxuRWTJQuWxsSrqOmNDzVz2nKmHkTQpSUzZHiG4n tiqicUkBSknaiG9L0JYAqEBGXjrtdPyibGC3whnCDf0etVc9ldYKi9xi2vquRMjCWH7F JyJzxgJwDxoxdMTIYCArkpLVNKRL/Xprf4wUuPIoj13yaSSMgAB54BOI3wNRVQdhAKGO nxWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=GZ75EFBsDygVr08sAtZqO3wl4Q5UI2yFLEINTM0KDeQ=; b=rKbt8hKcuqlctGDG2DiE04CoIrSUg6yCdD9TfQrsWYdVbVUuUZB1AysVHReKjUOz8z P7ZarxQRt4SrEWuVal8nxa9dj/D/uFIh9mF7ZmVW+USw88QtPTepuEaRT2JwcaE8ygYa SOL1sBLHsjsUI3nhlYkwfP2qOf+AdHupVQz9VT/foOZAfn3sGyo7ZwFVSoHVYsMJTioi 63Hgi1JS4/sVZ8JX/sVsU7LtKSPBXV6e/ZE8e4iL2Wi4lCaIF3FI4fo9jqqxJrL7xixr EnpdFgS75D1s8TaFliIgXaHxIK6JsHCUkhv0eJPWmGavz8dV9iDD4UjE0af4JTGPOgqM 5OKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y21si1547373qtv.287.2020.06.02.07.08.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jun 2020 07:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from localhost ([::1]:60980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg7ap-00044N-ER for alex.bennee@linaro.org; Tue, 02 Jun 2020 10:08:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg7ah-000444-IU; Tue, 02 Jun 2020 10:08:33 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:62162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg7ag-0004Ya-H9; Tue, 02 Jun 2020 10:08:31 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 052E4pZ6086693; Tue, 2 Jun 2020 10:08:27 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31cw8uap93-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 10:08:26 -0400 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 052E5CO5090321; Tue, 2 Jun 2020 10:08:26 -0400 Received: from ppma01wdc.us.ibm.com (fd.55.37a9.ip4.static.sl-reverse.com [169.55.85.253]) by mx0a-001b2d01.pphosted.com with ESMTP id 31cw8uap88-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 10:08:26 -0400 Received: from pps.filterd (ppma01wdc.us.ibm.com [127.0.0.1]) by ppma01wdc.us.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 052E0f2V008421; Tue, 2 Jun 2020 14:08:24 GMT Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by ppma01wdc.us.ibm.com with ESMTP id 31bf492f39-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 02 Jun 2020 14:08:24 +0000 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 052E8OiY44892522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 2 Jun 2020 14:08:24 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 305BA112063; Tue, 2 Jun 2020 14:08:24 +0000 (GMT) Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 14896112061; Tue, 2 Jun 2020 14:08:24 +0000 (GMT) Received: from sbct-3.pok.ibm.com (unknown [9.47.158.153]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 2 Jun 2020 14:08:24 +0000 (GMT) Subject: Re: [RFC 1/6] test/tpm-emu: include sockets and channel headers in tpm-emu header To: Eric Auger , eric.auger.pro@gmail.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, mst@redhat.com, shannon.zhaosl@gmail.com, imammedo@redhat.com References: <20200601102113.1207-1-eric.auger@redhat.com> <20200601102113.1207-2-eric.auger@redhat.com> From: Stefan Berger Message-ID: <915c28b6-b2cc-76ef-8d33-8422dfb5e619@linux.ibm.com> Date: Tue, 2 Jun 2020 10:08:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200601102113.1207-2-eric.auger@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687 definitions=2020-06-02_13:2020-06-02, 2020-06-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 phishscore=0 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 mlxlogscore=999 cotscore=-2147483648 priorityscore=1501 spamscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006020100 Received-SPF: pass client-ip=148.163.156.1; envelope-from=stefanb@linux.ibm.com; helo=mx0a-001b2d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/02 10:08:28 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, KHOP_DYNAMIC=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marcandre.lureau@redhat.com, drjones@redhat.com, lersek@redhat.com, ardb@kernel.org, philmd@redhat.com Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: VfTRBFrnF9Th On 6/1/20 6:21 AM, Eric Auger wrote: > Include sockets and channel headers to that the header is > self-contained. > > Signed-off-by: Eric Auger Reviewed-by: Stefan Berger > --- > tests/qtest/tpm-emu.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tests/qtest/tpm-emu.h b/tests/qtest/tpm-emu.h > index a4f1d64226..73f3bed0c4 100644 > --- a/tests/qtest/tpm-emu.h > +++ b/tests/qtest/tpm-emu.h > @@ -16,6 +16,9 @@ > #define TPM_RC_FAILURE 0x101 > #define TPM2_ST_NO_SESSIONS 0x8001 > > +#include "qemu/sockets.h" > +#include "io/channel.h" > + > struct tpm_hdr { > uint16_t tag; > uint32_t len;