virtio-net has a sudden high latency when receiving

2019-12-24 Thread yue
Hi, all. virtio-net has a sudden high latency when receiving. i think it is irq related, but i have no idea to fix it. centos 3.10.0-693.21.1.el7.x86_64 ; qemu-kvm-ev-2.6.0-28.el7_3.9.1.x86_64 ; physical machine has 40 cpus, the two vms are on the same node, cpu load is very low. 1) pic1

[PATCH 1/2] target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES

2019-12-24 Thread Xiaoyao Li
The bit 6, 7 and 8 of MSR_IA32_ARCH_CAPABILITIES are recently disclosed for some security issues. Add the definitions for them to be used by named CPU models. Signed-off-by: Xiaoyao Li --- target/i386/cpu.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/target/

[PATCH 2/2] target/i386: Add missed features to Cooperlake CPU model

2019-12-24 Thread Xiaoyao Li
It lacks VMX features and two security feature bits (disclosed recently) in MSR_IA32_ARCH_CAPABILITIES in current Cooperlake CPU model, so add them. Fixes: 22a866b6166d ("i386: Add new CPU model Cooperlake") Signed-off-by: Xiaoyao Li --- target/i386/cpu.c | 51 +++

[PATCH 0/2] Fix Cooperlake CPU model

2019-12-24 Thread Xiaoyao Li
Current Cooperlake CPU model lacks VMX features which are introduced by Paolo several months ago, and it also lacks 2 security features in MSR_IA32_ARCH_CAPABILITIES disclosed recently. Xiaoyao Li (2): target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES target/i386: Add missed f

virtio-net has a sudden high latency when receiving

2019-12-24 Thread yue
Hi, all. virtio-net has a sudden high latency when receiving. i think it is irq related, but i have no idea to fix it. 1) pic1: inside vm1(192.168.91.4) , ping 192.168.91.5; please notice seq 20 [1577252450.592441] 64 bytes from 192.168.91.5: icmp_seq=6 ttl=64 time=0.335 ms [1577252451.

Audio not working in Qemu-4.2 with pulse audio.

2019-12-24 Thread padmashree mandri
Hi all, I tried to run Qemu-4.2 with pulse audio but faced issue as there is no audio at all in guest .However it works fine with ALSA. I tried the same in Qemu-3.0 with pulseaudio. It was working fine. But facing issue after upgrading to Qemu-4.2. Any suggestions? Thanks Padm

Re: [PATCH] target/ppc: fix memory dump endianness in QEMU monitor

2019-12-24 Thread Fabiano Rosas
David Gibson writes: >> It looks like the hflags MSR_LE is being updated correctly with TCG. But >> with KVM we only touch it on system_reset > > Ah.. right. I think to fix that we'd want an hreg_compute_hflags() at > the end of sucking the state out of KVM. > Hm.. The hflags is a TCG thing tha

Re: [PATCH] hw/rtc/mc146818: Add missing dependency on ISA Bus

2019-12-24 Thread Stefano Garzarella
On Tue, Dec 24, 2019 at 12:16:28PM +0100, Philippe Mathieu-Daudé wrote: > The MC146818 sits on an ISA bus. Since it can not be used > without it, select ISA in the Kconfig. > > Fixes: 82f5181777e > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/rtc/Kconfig | 1 + > 1 file changed, 1 insertion(

Re: [PATCH v1] virtio-mmio: update queue size on guest write

2019-12-24 Thread Stefano Garzarella
On Tue, Dec 24, 2019 at 11:14:46AM +0300, Denis Plotnikov wrote: > Some guests read back queue size after writing it. > Always update the on size write otherwise they might be confused. > > Signed-off-by: Denis Plotnikov > --- > hw/virtio/virtio-mmio.c | 3 ++- > 1 file changed, 2 insertions(+),

Re: Making QEMU easier for management tools and applications

2019-12-24 Thread Daniel P . Berrangé
On Sat, Dec 21, 2019 at 10:02:23AM +0100, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > Hi, > > QEMU presents a command-line interface and QMP monitor for > > applications to interact with. Applications actually need API > > bindings in their programming language. Bindings avoid reim

Re: Making QEMU easier for management tools and applications

2019-12-24 Thread Daniel P . Berrangé
On Fri, Dec 20, 2019 at 04:13:59PM +, Stefan Hajnoczi wrote: > Hi, > QEMU presents a command-line interface and QMP monitor for > applications to interact with. Applications actually need API > bindings in their programming language. Bindings avoid reimplementing > code to spawn a QEMU proces

[Bug 1857449] [NEW] QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it

2019-12-24 Thread Ciro Santilli 六四事件 法轮功
Public bug reported: QEMU 4.2.0 compiled from source, Ubuntu 19.10, open a fresh new gnome terminal. If you print 1000 = chars on the host terminal, then they do wrap around the end of the terminal: printf "=%.0s" {0..1000} However, if you first run QEMU: x86_64-softmmu/qemu-system-x86_64 -nog

[PATCH] hw/rtc/mc146818: Add missing dependency on ISA Bus

2019-12-24 Thread Philippe Mathieu-Daudé
The MC146818 sits on an ISA bus. Since it can not be used without it, select ISA in the Kconfig. Fixes: 82f5181777e Signed-off-by: Philippe Mathieu-Daudé --- hw/rtc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/rtc/Kconfig b/hw/rtc/Kconfig index 45daa8d655..3dc2dd6888 100644 ---

Unable to log messages into default qemu log

2019-12-24 Thread Aijaz . Baig
I’m trying to experiment with adding a Qemu devices (ethernet/NIC) and it’s corresponding Linux driver. I’ve chosen to port the following ‘codeproject’ project: https://www.codeproject.com/Articles/1087177/Linux-Ethernet-Driver-using-Qemu Since this was written a couple of years back, it didn’t

[PATCH v1] virtio-mmio: update queue size on guest write

2019-12-24 Thread Denis Plotnikov
Some guests read back queue size after writing it. Always update the on size write otherwise they might be confused. Signed-off-by: Denis Plotnikov --- hw/virtio/virtio-mmio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c