virtio-console: Fix failure on unconnected pty
when I tried qemu with -virtio-console pty the guest hangs and attachingon /dev/pts/<x> does not return anything if the attachment is too late.
This results in pty_chr_write() returning 0, which causes the port to...
Merge remote-tracking branch 'aneesh/for-upstream' into staging
Set numa topology for max_cpus
qemu-kvm passes numa/SRAT topology information for smp_cpus to SeaBIOS. HoweverSeaBIOS always expects to setup max_cpus number of SRAT cpu entries(MaxCountCPUs variable in build_srat function of Seabios). When qemu-kvm runs...
virtio-console: Check if chardev backends available before calling into them
For the callback functions invoked by the virtio-serial-bus code, checkif we have chardev backends registered before we call into the chardevfunctions.
Signed-off-by: Amit Shah <amit.shah@redhat.com>...
virtio-console: Properly initialise class methods
The earlier code really was a hack: initialising class methods in anobject init function as noted by Anthony.
The motivation for that was to not have the virtio-serial-bus call intothe callback functions if there was no chardev backend registered....
virtio-serial-bus: Ports are expected to implement 'have_data' callback
There's no need to check if ports can accept any incoming data from theguest each time the guest sends data. Check if the port implements suchfunctionality during port initialisation....
hw/9pfs: Use the correct signed type for different variables
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs: iattr_valid flags are kernel internal flags map them to 9p values.
Kernel internal values can change, add protocol values for these constant anduse them.
hw/9pfs: replace iovec manipulation with QEMUIOVector
The v9fs_read() and v9fs_write() functions rely on iovec[] manipulationcode should be replaced with QEMUIOVector to avoid duplicating code.In the future it may be possible to make the code even more concise by...
sd: Remember to reset .expecting_acmd on reset.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
View revisions
Also available in: Atom