[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
