RE: [question] lots of interrupts injected to vm when pressing some key w/o releasing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>>>>> I tested win-server-2008 with "-cpu
>>>>>>>> core2duo,hv_spinlocks=0xffff,hv_relaxed,hv_time",
>>>>>>>> this problem still happened, about 200,000 vmexits per-second,
>>>>>>>> bringing very bad experience, just like being stuck.
>>>>>>> 
>>>>>>> Please upload a full trace somewhere, or at least the "perf report"
>>>>>>> output.
>>>>>>> 
>>>>>> 
>>>>>> And, if I remove the commit of 0bc830b0, the problem disappeared.
>>>>> 
>>>>> Please send the full trace file.  If you compress it, it should be small.
>>>>> 
>>>> See the attach 1, please.
>>>> 
>>>>> Paolo
>>> 
>>> Can you try the follow draft patch to see whether it solve your
>>> problem? This patch is based on commit 0bc830b0.
>>> 
>> After applying this patch, VM got stuck with black-screen at boot
>
>It is works well in my side. And this patch does fix the issue in my box.
>I am using window 2008 R2 for testing, here is the qemu cmdline:
>qemu-system-x86_64 -enable-kvm -m 4G -smp 4 -net nic,macaddr=00:12:41:41:13:41 -net tap,script=/etc/kvm/qemu-ifup win2k8.qcow
>
>Can you provide your configuration for me to test?
>
/usr/bin/kvm -id 2284096534876 -chardev socket,id=qmp,path=/var/run/qemu-server/2284096534876.qmp,server,nowait -mon chardev=qmp,mode=control -vnc :0,websocket,to=200,x509,password -pidfile /var/run/qemu-server/2284096534876.pid -daemonize -name win2008-x64 -smp sockets=1,cores=2 -cpu core2duo,hv_spinlocks=0xffff,hv_relaxed -nodefaults -vga cirrus -no-hpet -k en-us -boot menu=on,splash-time=8000 -m 4096 -usb -drive if=none,id=drive-ide0,media=cdrom,aio=threads -device ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100 -drive file=/sf/data/local/images/host-4061863144dc/d23a20df36a5/win2008-x64.vm/vm-disk-1.qcow2,if=none,id=drive-ide1,cache=none,aio=threads -device ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1 -netdev type=tap,id=net0,ifname=228409653487600,script=/sf/etc/kvm/vtp-bridge,vhost=on,vhostforce=on -device virtio-net-pci,romfile=,mac=FE:FC:FE:99:4C:2E,netdev=net0,bus=pci.0,addr=0x12,id=net0 -rtc driftfix=slew,clock=rt,base=localtime -global kvm-pit.lo
 st_tick_policy=discard -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -chardev socket,path=/var/run/qemu-server/2284096534876.virtser,server,nowait,id=channelser -device virtio-serial,max_ports=2,ioeventfd=off -device virtserialport,chardev=channelser,name=channelser.virtserial0.0 -bios /sf/share/kvm/bios.bin.1

You can change "-id" option to "-uuid".

Thanks,
Zhang Haoyu
>> stage, # trace-cmd report:
>> version = 6
>> CPU 0 is empty
>> CPU 1 is empty
>> CPU 2 is empty
>> CPU 3 is empty
>> CPU 5 is empty
>> CPU 7 is empty
>> cpus=8
>>              kvm-1266  [004] 14399.834397: kvm_set_irq:          gsi 9
>>              level 1 source 0 kvm-1266  [004] 14399.834403:
>>              kvm_pic_set_irq:      chip 1 pin 1 (edge|masked) kvm-1266 
>>              [004] 14399.834411: kvm_apic_accept_irq: apicid 0 vec 177
>>              (LowPrio|level) kvm-1266  [004] 14399.834412:
>>              kvm_ioapic_set_irq:   pin 9 dst 3 vec=177
>>              (LowPrio|logical|level) kvm-1266  [004] 14402.180013:
>>              kvm_set_irq:          gsi 9 level 1 source 0 kvm-1266 
>>              [004] 14402.180019: kvm_pic_set_irq:      chip 1 pin 1
>>              (edge|masked) kvm-1266  [004] 14402.180028:
>>              kvm_apic_accept_irq: apicid 1 vec 177 (LowPrio|level)
>>              kvm-1266  [004] 14402.180029: kvm_ioapic_set_irq:   pin 9
>>              dst 3 vec=177 (LowPrio|logical|level) kvm-1266  [004]
>>              14404.525627: kvm_set_irq:          gsi 9 level 1 source 0
>>              kvm-1266  [004] 14404.525634: kvm_pic_set_irq:      chip 1
>>              pin 1 (edge|masked) kvm-1266  [004] 14404.525641:
>>              kvm_apic_accept_irq: apicid 0 vec 177 (LowPrio|level)
>>              kvm-1266  [004] 14404.525642: kvm_ioapic_set_irq:   pin 9
>>              dst 3 vec=177 (LowPrio|logical|level) kvm-1266  [004]
>>              14406.871238: kvm_set_irq:          gsi 9 level 1 source 0
>>              kvm-1266  [004] 14406.871245: kvm_pic_set_irq:      chip 1
>>              pin 1 (edge|masked) kvm-1266  [004] 14406.871254:
>>              kvm_apic_accept_irq: apicid 1 vec 177 (LowPrio|level)
>>              kvm-1266  [004] 14406.871256: kvm_ioapic_set_irq:   pin 9
>>              dst 3 vec=177 (LowPrio|logical|level) kvm-1266  [006]
>>              14409.216849: kvm_set_irq:          gsi 9 level 1 source 0
>>              kvm-1266  [006] 14409.216855: kvm_pic_set_irq:      chip 1
>>              pin 1 (edge|masked) kvm-1266  [006] 14409.216862:
>>              kvm_apic_accept_irq: apicid 0 vec 177 (LowPrio|level)
>>              kvm-1266  [006] 14409.216863: kvm_ioapic_set_irq:   pin 9
>>              dst 3 vec=177 (LowPrio|logical|level) kvm-1266  [006]
>>              14411.562475: kvm_set_irq:          gsi 9 level 1 source 0
>>              kvm-1266  [006] 14411.562481: kvm_pic_set_irq:      chip 1
>>              pin 1 (edge|masked) kvm-1266  [006] 14411.562489:
>>              kvm_apic_accept_irq: apicid 1 vec 177 (LowPrio|level)
>>              kvm-1266  [006] 14411.562491: kvm_ioapic_set_irq:   pin 9
>>              dst 3 vec=177 (LowPrio|logical|level) kvm-1266  [004]
>>              14413.908074: kvm_set_irq:          gsi 9 level 1 source 0
>>              kvm-1266  [004] 14413.908080: kvm_pic_set_irq:      chip 1
>>              pin 1 (edge|masked) kvm-1266  [004] 14413.908088:
>>              kvm_apic_accept_irq: apicid 0 vec 177 (LowPrio|level)
>>              kvm-1266  [004] 14413.908089: kvm_ioapic_set_irq:   pin 9
>> dst 3 vec=177 (LowPrio|logical|level)
>> 
>> Thanks,
>> Zhang Haoyu
>> 
>Best regards,
>Yang

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux