[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

vhost-user-i2c on xen x86


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Mavila, Sudheesh" <Sudheesh.Mavila@xxxxxxx>
  • Date: Sun, 28 Aug 2022 18:28:49 +0000
  • Accept-language: en-US, en-IN
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lMHNB6TAySifvCc072cGrzDQMXbAXN9dF32K6IP2pYw=; b=YtUGXB9pu5CiRhwjuYfNvRbIagdas10vY0jtBWGPgEx3Eq6JKA2NQH6qT+sTm9bu6kolNzV4sI5rZCFjqMvWEizFR26yHsbS5CkchYA7pGYex2yAsPeUiVCkyWqdfiybJ7RXUAyh946AbKJEtVHclKVYPOGNcurZF5fUcXbEVGXUqK7SvPuDKvPOVuXRWSDi+rHa0oFGK0TmIxvGJZQ3QkSloT1hKQcezXYheB/XRU2NbMKz+SDFiZzLWw98660lNtFhagMDpdMAjIaWMSxydMUUsIFLD6qoRyNXZQUG2MMJyQ+NbwUY0RaXLB1LZmHe+6PJLJVlvoZffyE4CA9eQg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IwHLyiRM/fwMnEmyXRKF1VzI6LnMDFbRcHl/FCO52BzOPQrufwW2kE+iCQ2BI7e8jv9IeatG+nMvuQZ6lA8GT4KqCJDQdXu3Srmeq9lDHUFnhw5AnhAcXq5P0FbpfhobSI2mGsCHFZgXNHQsoYf0d0dXx4Vv9U2a0t1VJy6GNmznNpRF+K6Vtwc+/zLrb1Hr/elkaUtk5Jas5OlY5AUGpFF5DsoJkZB51iEK/eKBmCD9ir0hmqau/82HNTvVVt6UI4JlkTMBn3erVZd6EPqP2iknIplbplYu3F7O7dstXbpFvBL72NkxTPEq2HryhjRYUVO0shLUJc8vlv13hWNwiw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
  • Delivery-date: Mon, 29 Aug 2022 04:05:48 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_actionid: 05dd458b-0434-4f9c-baef-0ce7423b781e
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_contentbits: 0
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_enabled: true
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_method: Standard
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_name: General
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_setdate: 2022-08-28T18:28:47Z
  • Msip_label_4342314e-0df4-4b58-84bf-38bed6170a0f_siteid: 3dd8961f-e488-4e60-8e11-a82d994e183d
  • Msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2022-08-28T18:23:45Z; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=94d3cc84-354e-4331-a0d0-62720f1e9242; MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=1
  • Thread-index: Adi7C1KeC2b2cv7iS1WzEpMAU109yg==
  • Thread-topic: vhost-user-i2c on xen x86

[AMD Official Use Only - General]


Hi All,

 

I tried to run vhost-user-i2c on X86 machine according to the page https://lists.gnu.org/archive/html/qemu-devel/2021-03/msg08379.html

The aim is to access i2c device from VM.

 

How can I pass the below arguments to boot the VM using xl tool? Which is the recommended way to access i2c bus from VM on x86?

  -chardev socket,path=vi2c.sock,id=vi2c \

  -device vhost-user-i2c-pci,chardev=vi2c,id=i2c

 

I tried to pass this arguments as below, but failed to boot the VM

device_model_args_hvm = [ "-chardev", "socket","path=vi2c.sock0","id=vi2c" ]

device_model_args_hvm = [ "-device", "vhost-user-i2c-pci","chardev=vi2c","id=i2c" ]

 

compiled  qemu with  the i2c-backend patch

./vhost-user-i2c --socket-path=vi2c.sock --device-list 0:57

vhost-user-i2c-Message: 19:23:00.434: awaiting connection to vi2c.sock

host                   : test

release                : 5.18.0

version                : #137 SMP PREEMPT_DYNAMIC Fri Aug 26 15:04:03 IST 2022

machine                : x86_64

nr_cpus                : 4

max_cpu_id             : 15

nr_nodes               : 1

cores_per_socket       : 2

threads_per_core       : 2

cpu_mhz                : 2595.174

hw_caps                : 178bf3ff:76d8320b:2e500800:244033ff:0000000f:209c01a9:00000000:00000500

virt_caps              : pv hvm hvm_directio pv_directio hap shadow gnttab-v1 gnttab-v2

total_memory           : 14234

free_memory            : 269

sharing_freed_memory   : 0

sharing_used_memory    : 0

outstanding_claims     : 0

free_cpus              : 0

xen_major              : 4

xen_minor              : 16

xen_extra              : .0

xen_version            : 4.16.0

xen_caps               : xen-3.0-x86_64 hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64

xen_scheduler          : credit2

xen_pagesize           : 4096

platform_params        : virt_start=0xffff800000000000

xen_changeset          : Tue Nov 30 11:42:42 2021 +0000 git:b0b4661fa3-dirty

xen_commandline        : placeholder no-real-mode edd=off

cc_compiler            : gcc (Ubuntu 10.3.0-15ubuntu1) 10.3.0

cc_compile_by          : root

cc_compile_domain      :

cc_compile_date        : Fri Aug 26 18:27:08 IST 2022

build_id               : d1e031cd177cfb054ac36a8872af15f6be926c56

xend_config_format     : 4

 

test@test:~$ /usr/local/lib/xen/bin/qemu-system-i386 --version

QEMU emulator version 6.1.0

Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

 

Thanks in advance.

 

Regards,

Sudheesh


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.