From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KBK4nWyV; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id 92EC55A004E for ; Thu, 19 Dec 2024 15:35:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734618928; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9VI1TQn5GBocwwJFMtOoDGQRwArNk8cGyheJEc0KvDU=; b=KBK4nWyV5kUH0CbzkvBXi2q/tnjF4+1lBcncYfWZsPtmSZt8lpUYGOy8+etmEF+HhsWnGC bzMdvi3i9TFPQ0GwLr0E7GKgCQ84k5CIbBD874lxc8H2dEM0vJVwgV7WdagwCuJO2kxu9q ZzVysjTU7xIRviRlFr+2Jwfj0FAz6Rk= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-664-9k9nhjTrPKukBO7xiOAg6w-1; Thu, 19 Dec 2024 06:14:14 -0500 X-MC-Unique: 9k9nhjTrPKukBO7xiOAg6w-1 X-Mimecast-MFC-AGG-ID: 9k9nhjTrPKukBO7xiOAg6w Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 829261956087 for ; Thu, 19 Dec 2024 11:14:13 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.39.193.37]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 922B819560A2; Thu, 19 Dec 2024 11:14:12 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH 7/9] vhost-user: add VHOST_USER_CHECK_DEVICE_STATE command Date: Thu, 19 Dec 2024 12:13:58 +0100 Message-ID: <20241219111400.2352110-8-lvivier@redhat.com> In-Reply-To: <20241219111400.2352110-1-lvivier@redhat.com> References: <20241219111400.2352110-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: nX1XdwqLWhOvD5Wa0QZPKpvxCD6x_kL7WS7iqTkp0Bc_1734606853 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: F5IRNDB5PDBFCVKHKC32PHMGFI5B4SBT X-Message-ID-Hash: F5IRNDB5PDBFCVKHKC32PHMGFI5B4SBT X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: QWZ0ZXIgdHJhbnNmZXJyaW5nIHRoZSBiYWNrLWVuZOKAmXMgaW50ZXJuYWwgc3RhdGUgZHVyaW5n IG1pZ3JhdGlvbiwNCmNoZWN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