[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Question: xen + vhost user
From: |
Peng Fan |
Subject: |
RE: Question: xen + vhost user |
Date: |
Tue, 9 Jul 2024 01:21:41 +0000 |
> Subject: Re: Question: xen + vhost user
>
> +Edgar
>
> I don't think we are using vhost-user so I am unable to help, but adding
> Edgar just in case
Thanks, just an update, it works after some code changes to Qemu.
Thanks,
Peng.
>
> On Sun, 30 Jun 2024, Peng Fan wrote:
> > Hi All,
> >
> > I am trying to enable vhost user input with xen hypervisor on i.MX95,
> > using qemu vhost-user-input. But meet " Invalid vring_addr message
> ". My xen domu cfg:
> >
> > '-chardev', 'socket,path=/tmp/input.sock,id=mouse0',
> > '-device', 'vhost-user-input-pci,chardev=mouse0',
> >
> > Anyone knows what missing?
> >
> > Partial error log:
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_ADDR (9)
> > Flags: 0x1
> > Size: 40
> > vhost_vring_addr:
> > index: 0
> > flags: 0
> > desc_user_addr: 0x0000ffff889b0000
> > used_user_addr: 0x0000ffff889b04c0
> > avail_user_addr: 0x0000ffff889b0400
> > log_guest_addr: 0x00000000444714c0
> > Setting virtq addresses:
> > vring_desc at (nil)
> > vring_used at (nil)
> > vring_avail at (nil)
> >
> > ** (vhost-user-input:1816): CRITICAL **: 07:20:46.077: Invalid
> > vring_addr message
> >
> > Thanks,
> > Peng.
> >
> > The full vhost user debug log:
> > ./vhost-user-input --socket-path=/tmp/input.sock --evdev-path=/d
> > -path=/dev/input/event1 ./vhost-user-input
> > --socket-path=/tmp/input.sock --evdev- ================ Vhost
> user
> > message ================
> > Request: VHOST_USER_GET_FEATURES (1)
> > Flags: 0x1
> > Size: 0
> > Sending back to guest u64: 0x0000000175000000
> ================ Vhost
> > user message ================
> > Request: VHOST_USER_GET_PROTOCOL_FEATURES (15)
> > Flags: 0x1
> > Size: 0
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_PROTOCOL_FEATURES (16)
> > Flags: 0x1
> > Size: 8
> > u64: 0x0000000000008e2b
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_QUEUE_NUM (17)
> > Flags: 0x1
> > Size: 0
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_MAX_MEM_SLOTS (36)
> > Flags: 0x1
> > Size: 0
> > u64: 0x0000000000000020
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_BACKEND_REQ_FD (21)
> > Flags: 0x9
> > Size: 0
> > Fds: 6
> > Got backend_fd: 6
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_OWNER (3)
> > Flags: 0x1
> > Size: 0
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_FEATURES (1)
> > Flags: 0x1
> > Size: 0
> > Sending back to guest u64: 0x0000000175000000
> ================ Vhost
> > user message ================
> > Request: VHOST_USER_SET_VRING_CALL (13)
> > Flags: 0x1
> > Size: 8
> > Fds: 7
> > u64: 0x0000000000000000
> > Got call_fd: 7 for vq: 0
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_ERR (14)
> > Flags: 0x1
> > Size: 8
> > Fds: 8
> > u64: 0x0000000000000000
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_CALL (13)
> > Flags: 0x1
> > Size: 8
> > Fds: 9
> > u64: 0x0000000000000001
> > Got call_fd: 9 for vq: 1
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_ERR (14)
> > Flags: 0x1
> > Size: 8
> > Fds: 10
> > u64: 0x0000000000000001
> > (XEN) d2v0 Unhandled SMC/HVC: 0x84000050
> > (XEN) d2v0 Unhandled SMC/HVC: 0x8600ff01
> > (XEN) d2v0: vGICD: RAZ on reserved register offset 0x00000c
> > (XEN) d2v0: vGICD: unhandled word write 0x000000ffffffff to
> ICACTIVER4
> > (XEN) d2v0: vGICR: SGI: unhandled word write 0x000000ffffffff to
> > ICACTIVER0 ================ Vhost user message
> ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_CONFIG (25)
> > Flags: 0x9
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_GET_CONFIG (24)
> > Flags: 0x1
> > Size: 148
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_FEATURES (2)
> > Flags: 0x1
> > Size: 8
> > u64: 0x0000010170000000
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_NUM (8)
> > Flags: 0x1
> > Size: 8
> > State.index: 0
> > State.num: 64
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_BASE (10)
> > Flags: 0x1
> > Size: 8
> > State.index: 0
> > State.num: 0
> > ================ Vhost user message ================
> > Request: VHOST_USER_SET_VRING_ADDR (9)
> > Flags: 0x1
> > Size: 40
> > vhost_vring_addr:
> > index: 0
> > flags: 0
> > desc_user_addr: 0x0000ffff889b0000
> > used_user_addr: 0x0000ffff889b04c0
> > avail_user_addr: 0x0000ffff889b0400
> > log_guest_addr: 0x00000000444714c0
> > Setting virtq addresses:
> > vring_desc at (nil)
> > vring_used at (nil)
> > vring_avail at (nil)
> >
> > ** (vhost-user-input:1816): CRITICAL **: 07:20:46.077: Invalid
> > vring_addr message
> >
> > root@imx95evk:~#
> >