qemu-e2k/hw/input
Kevin Wolf 50de51387f vhost: Distinguish errors in vhost_dev_get_config()
Instead of just returning 0/-1 and letting the caller make up a
meaningless error message, add an Error parameter to allow reporting the
real error and switch to 0/-errno so that different kind of errors can
be distinguished in the caller.

config_len in vhost_user_get_config() is defined by the device, so if
it's larger than VHOST_USER_MAX_CONFIG_SIZE, this is a programming
error. Turn the corresponding check into an assertion.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20210609154658.350308-6-kwolf@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2021-06-30 13:18:42 +02:00
..
adb-internal.h
adb-kbd.c Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
adb-mouse.c Use OBJECT_DECLARE_TYPE when possible 2020-09-18 14:12:32 -04:00
adb.c adb: Correct class size on TYPE_ADB_DEVICE 2020-09-08 10:08:42 +10:00
ads7846.c ads7846: moves from the hw/display folder to the hw/input folder. 2020-12-13 17:54:55 +01:00
hid.c hw/input/hid: Add support for keys of jp106 keyboard. 2021-05-28 09:08:03 +02:00
Kconfig ads7846: moves from the hw/display folder to the hw/input folder. 2020-12-13 17:54:55 +01:00
lasips2.c Do not include sysemu/sysemu.h if it's not really necessary 2021-05-02 17:24:50 +02:00
lm832x.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
meson.build Drop the deprecated lm32 target 2021-05-12 18:20:25 +02:00
pckbd.c pckbd: clear outport_present in outer pre_load() 2021-05-26 11:33:19 +02:00
pl050.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
ps2.c hw/input/ps2: Use ps2_raise_irq() instead of open coding it 2021-05-26 11:33:49 +02:00
pxa2xx_keypad.c
stellaris_input.c
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h
tsc210x.c
tsc2005.c
vhost-user-input.c vhost: Distinguish errors in vhost_dev_get_config() 2021-06-30 13:18:42 +02:00
virtio-input-hid.c
virtio-input-host.c Fix build with 64 bits time_t 2021-05-14 10:26:18 -04:00
virtio-input.c