a qemu process has 54 threads, how to know who they are and what they are doing

2022-04-20 Thread yue
Hi, i think it is curios for a process to have so many threads. my environment: 5.4.160-1.el7.x86_64, qemu-6.1.0 thanks =cmd== root 11918 0.0 0.0 112720 2280 pts/0S+ 09:30 0:00 grep --color=auto 38032 root 38032 58.0 1.0 8705632 2823304 ? Sl

why tx_queue_size must be 256 for non-vhost-user tap nic

2021-12-30 Thread yue
Hi, all: I tried to test the effort of nic queue's ring-size, but nic' tx vring-size is always 256. finally i found the code. could you tell why ? thanks - n->net_conf.tx_queue_size = MIN(virtio_net_max_tx_queue_size(n),

Bus 'pcie.0' does not support hotplugging

2021-11-07 Thread yue
Hi, all: in my case it is kata that manage qemu directly via qmp. (QEMU emulator version 5.2.0 (kata-static)). i have tested via virsh command and make sure that qemu-system-x86_64 supports hotplug. but if qemu was started by kata, attach-disk failed. 1. it is which option that

virtio-net has a sudden high latency

2019-12-29 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)

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)

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

Re: [Qemu-devel] CVE-2016-5403 results in a bug

2016-10-20 Thread yue
i basicly understand the code, i have it done next week. do you have any suggestion? At 2016-10-19 16:58:21, "Yadi Hu" <yadi...@windriver.com> wrote: >On 2016年10月18日 17:40, Stefan Hajnoczi wrote: >> On Tue, Oct 18, 2016 at 10:24 AM, yue <kvml...@163.com> wro

[Qemu-devel] is there a way to optimize vhost of virtio-net

2016-10-18 Thread yue
hi, jasowang: according to my test , the vm's network performance is just 20% of physical ethernet, the thread of vhost  easily eat up 100% cpu when under pressure. when using multi queue(two queues) the performance goes up by 50%, but it uses more threads. if we can come to a conclusion

[Qemu-devel] CVE-2016-5403 results in a bug

2016-10-18 Thread yue
hi, all:     i apply this patch, https://git.centos.org/blob/rpms!!qemu-kvm/6078803a0db76660aef491907f795bb23ad33357/SOURCES!kvm-virtio-error-out-if-guest-exceeds-virtqueue-size.patch;jsessionid=124pfc40q9ejezgb0b5qrnv6m#L33  .   but this patch always results in a bug(bug?).  a vm always exits

[Qemu-devel] CVE-2016-5403 results in a bug

2016-10-17 Thread yue
hi, all: i apply this patch, https://git.centos.org/blob/rpms!!qemu-kvm/6078803a0db76660aef491907f795bb23ad33357/SOURCES!kvm-virtio-error-out-if-guest-exceeds-virtqueue-size.patch;jsessionid=124pfc40q9ejezgb0b5qrnv6m#L33 . but this patch always results in a bug(bug?). a vm always exits

[Qemu-devel] is there a way to optimize vhost of virtio-net

2016-10-17 Thread yue
hi, jasowang: according to my test , the vm's network performance is just 20% of physical ethernet, the thread of vhost easily eat up 100% cpu when under pressure. when using multi queue(two queues) the performance goes up by 50%, but it uses more threads. if we can come to a conclusion

[Qemu-devel] is there a way to optimize vhost of virtio-net

2016-10-17 Thread yue
hi, jasowang: according to my test , the vm's network performance is just 20% of physical ethernet, the thread of vhost easily eat up 100% cpu when under pressure. when using multi queue(two queues) the performance goes up by 50%, but it uses more threads. if we can come to a conclusion

[Qemu-devel] CVE-2016-5403 results in a bug

2016-10-17 Thread yue
hi, all: i apply this patch, https://git.centos.org/blob/rpms!!qemu-kvm/6078803a0db76660aef491907f795bb23ad33357/SOURCES!kvm-virtio-error-out-if-guest-exceeds-virtqueue-size.patch;jsessionid=124pfc40q9ejezgb0b5qrnv6m#L33 . but this patch always results in a bug(bug?). a vm always exits

[Qemu-devel] qemu-kvm process soft lockup cpu, results in server crush

2014-08-20 Thread yue
hi, i encounter several times my server crushs because qemu-kvm process locks cpu. thanks --log--- Aug 18 22:07:05 localhost kernel: [4625821.185649] nf_conntrack: table full, dropping packet. Aug 18 22:07:05 localhost kernel: [4625821.192085] nf_conntrack: table full,

[Qemu-devel] qemu-kvm process soft lockup cpu, results in server crash

2014-08-20 Thread yue
hi, i encounter several times my server crushs because qemu-kvm process locks cpu. thanks --log--- Aug 18 22:07:05 localhost kernel: [4625821.185649] nf_conntrack: table full, dropping packet. Aug 18 22:07:05 localhost kernel: [4625821.192085] nf_conntrack: table full,

[Qemu-devel] vm panics because assign different driver, why?

2014-07-09 Thread yue
hi,all please tell me the defferences between two commands of the following two groups. my test vm is http://wiki.qemu.org/download/linux-0.2.img.bz2 qemu is qemu-kvm-0.12.1.2-2.415.el6_5.10.x86_64 kernel is 2.6.32-279.el6.x86_64, centos 6.3

[Qemu-devel] from which version qemu support clone on rbd

2014-07-02 Thread yue
hi,all i now look at qemu 2.0, i do not find rbd-api related to clone. if qemu support this function? and from which version? clone api of rbd is very simple(one api), why qemu does not implement?what is the reason? thanks.

Re: [Qemu-devel] from which version qemu support clone on rbd

2014-07-02 Thread yue
come up with is qemu-img's backing file support for qcow2 images. You should stick to using the rbd tool to create clones of rbd devices. Alternatively, use a higher level tool (like openstack, etc) that supports this. --Iggy On 7/2/2014 10:17 AM, yue wrote: hi,all i now look at qemu 2.0, i do

[Qemu-devel] how qemu do io throttling?

2014-06-27 Thread yue
hi ,all i now know there are 2 ways to implement io throttling, one is cgroup, but it is only targeted at block device. another is qemu itself. i want to know the theory how qemu itself do io throttling? and in that case if it depends on the type of back storage(nfs,file,rbd, other posix fs)? it

[Qemu-devel] why mac addresses are different between inside and outside of vm

2014-02-09 Thread yue-kvm
hi, all nwfilter has many rules which depends on the mac of vm, but i find the mac address inside vm is different from mac outside of vm. outside mac: vnet0 Link encap:Ethernet HWaddr FE:54:00:71:15:7B , inside mac: eth0 Link encap:Ethernet HWaddr 52:54:00:71:15:7B ,virtio it looks like vnet* are

[Qemu-devel] fail to live migration is related to virtio-console

2013-12-27 Thread yue-kvm
hi,all this error occured when live migration windows os, log of that vm is: features 0x1e unsupported allowed features 0x7102 qemu warning error while loading state for instance 0x0 of device ':00:04.4/virtio-console' do you have some idea about that? thanks

[Qemu-devel] can we create complete image or start a vm from a snapshot point

2013-10-20 Thread yue-kvm
hi.all can we create complete image or start a vm from a snapshot point thanks

[Qemu-devel] help me with qemu-img theory(snapshot and backing file)

2013-09-29 Thread yue-kvm
hi,all if there any documents about snapshot and backing file's theory. as we know vmware has composor which can upgrade images(top of backing chain ) by upgrading backing file so i think we can implement it anyway. now i need some infomations relevant to my idea. and hope qemu-img

[Qemu-devel] Operation not permitted when start vm

2013-09-18 Thread yue-kvm
hi,all please look at the error. env: libvirt-0.10.2-18.el6_4.5.x86_64 2.6.32-358.6.2.el6.x86_64 centos6.4 Thread-6291::ERROR::2013-09-18 12:44:21,205::vm::683::vm.Vm::(_startUnderlyingVm) vmId=`24f7e975-9aa5-4a14-b0f0-590add14c8b5`::The vm start process failed Traceback (most recent call last):

[Qemu-devel] guest xp vm can not recognize vcpu

2013-07-10 Thread yue-kvm
hi, all in guest xp vm , device management shows a help sign on cpu device, it has two vcpu, only one is recognized(NODE has two physical cpu). qemu is build by myself from souce code, qemu-1.5.0, centos 6.4 a picture is attached . ---libvirt-- vcpu placement='static'2/vcpu os

[Qemu-devel] how to know qemu devices topology

2013-06-08 Thread yue-kvm
hi,all 1. how could i know how many devices qemu support and hardware topology of all of them? 2.the quantitativerestriction of guest's devices. vcpu,disk,ethernet,memory? thanks you all

[Qemu-devel] 2 errors of vnet and snapshot.

2013-05-25 Thread yue-kvm
hi,all i encounterd 2 errors . qemu 1.5(source code build), libvirt libvirt-0.10.2-18.el6_4.2.x86_64. 1. in guest, i can ping out, but get no answers. even throught i ping HOST ip. May 25 20:50:59 ovirtdev NetworkManager[2370]: warn /sys/devices/virtual/net/vnet0: couldn't determine device

[Qemu-devel] network down lead vm been shutdown

2013-05-02 Thread yue-kvm
hi,all the connection between remote-viewer and guest is good, now unplug Network Cable, wait several minutes, then kill virt-viewer. now guest will be shutdwn. ---winxp.log of libvirt-- handle_dev_display_connect: connect handle_new_display_channel: add display channel client

[Qemu-devel] qemu exit because of signal 11

2013-04-18 Thread yue-kvm
hi,all every time i remote connect my guest , ehich will be kill by signal 11. my environment centos6.3. audit.log type=ANOM_ABEND msg=audit(1366249929.447:14213): auid=0 uid=107 gid=107 ses=533 subj=system_u:system_r:svirt_t:s0:c898,c1007 pid=49526 comm=qemu-kvm sig=11 thanks

Re: [Qemu-devel] qemu-img do not verify encrytption

2013-03-07 Thread yue-kvm
hi stefan: [root@kvm ~]# qemu-img -V qemu-img version 0.12.1, Copyright (c) 2004-2008 Fabrice Bellard OS centos 6.3 thanks At 2013-03-07 17:56:50,Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Mar 07, 2013 at 02:49:30PM +0800, yue-kvm wrote: i create qcow2 format image with -o

[Qemu-devel] qemu-img do not verify encrytption

2013-03-06 Thread yue-kvm
i create qcow2 format image with -o encryption, and assign password. but when i qemu-img info encryt.qcow2 , it display encryt.qcow2 info no master what i input, even just hit enter. the 'Password Authentication ' of qemu-img may be invalid. thanks. my steps: Create an encrypted

[Qemu-devel] defferences between /usr/libexec/qemu-kvm and /usr/bin/qemu-system-x86_64

2012-10-13 Thread yue-kvm
what is the defferences between /usr/libexec/qemu-kvm and /usr/bin/qemu-system-x86_64? my OS is centos6.2, qemu-kvm is from a rpm package, while qemu-system-x86_64 is builded manually from source code. 1. if i can recognize they are the same thing? 2. for centos distro, how to build a qemu

[Qemu-devel] how to configurate rbd disk for qemu-kvm. it error in my case

2012-10-11 Thread yue-kvm
this is my conf dumU.xml -- disk type='network' device='disk' driver name='qemu' type='raw' cache='writethrough' io='native'/ auth username='cloud' secret type='ceph' uuid='7a91dc24-b072-43c4-98fb-4b2415322b0f'/ /auth source protocol='rbd' name='cloud/testrbd'

[Qemu-devel] How to speed up the CPU logging?

2012-06-09 Thread Yue Chen
Hi, Guy, When I use *log cpu* or *log exec* in the system *-monitor stdio* mode, it's extremely slow(lose my mouse/keyboard control). I used a buffer instead of directly writing log to disk, but even slower. When I give a large memory (-m 4G) to VM, or set the process priority(chrt -f 99) of

Re: [Qemu-devel] How to speed up the CPU logging?

2012-06-09 Thread Yue Chen
Thanks for replying. Do you know any easy way to do that? On Sat, Jun 9, 2012 at 11:02 AM, Blue Swirl blauwir...@gmail.com wrote: On Sat, Jun 9, 2012 at 2:37 PM, Yue Chen ycyc...@gmail.com wrote: Hi, Guy, When I use log cpu or log exec in the system -monitor stdio mode, it's extremely

Re: [Qemu-devel] Any approach to log the file read/write (I/O data flow) like the -d in_asm option?

2012-06-03 Thread Yue Chen
: On Fri, Jun 1, 2012 at 4:11 AM, Yue Chen ycyc...@gmail.com wrote: Any approach to log all the file read/write (I/O data flow) in order, together with the instruction traces in QEMU? Thanks. It sounds like you may be running a *-user target because softmmu (system emulation) has no knowledge

[Qemu-devel] Any approach to log the file read/write (I/O data flow) like the -d in_asm option?

2012-05-31 Thread Yue Chen
Hi, Any approach to log all the file read/write (I/O data flow) in order, together with the instruction traces in QEMU? Thanks.

Re: [Qemu-devel] Lack of codes in logging

2012-05-28 Thread Yue Chen
Do you know how to use that? When I use* log(-d) exec and log(-d) pcall*, the qemu.log is always empty. On Mon, May 28, 2012 at 10:47 PM, 陳韋任 (Wei-Ren Chen) che...@iis.sinica.edu.tw wrote: On Mon, May 28, 2012 at 10:37:47PM -0400, Yue Chen wrote: What's the helper function? Thanks. How

[Qemu-devel] To run (replay) the intermediate micro-ops directly

2012-04-30 Thread Yue Chen
Hi, Does anyone know, how to run(replay) the intermediate micro-ops directly? For example, I have traced some micro-op instructions, and want to see what happens with these instructions(after being translated into host code and then run). Probably with Graphic User Interface. Any approach to do

Re: [Qemu-devel] Debug single program in QEMU

2012-04-05 Thread Yue Chen
mode? User mode shouldn't have the issue you described. For system mode, I have no good idea on how to track a specific program running on the guest OS. On Thu, Mar 15, 2012 at 09:40:48AM -0400, Yue Chen wrote: But it is hard to localize a specific program instead of lots of logs. On Mar 15

Re: [Qemu-devel] Debug single program in QEMU

2012-04-03 Thread Yue Chen
instructions come out when I use -d in_asm to log? It's hard to find the real instructions of that single program... Thanks. 2012/3/15 陳韋任 che...@iis.sinica.edu.tw http://qemu.weilnetz.de/qemu-doc.html#QEMU-User-space-emulator On Thu, Mar 15, 2012 at 10:42:02PM -0400, Yue Chen wrote: So how to run

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread Yue Chen
But it is hard to localize a specific program instead of lots of logs. On Mar 15, 2012 4:14 AM, 陳韋任 che...@iis.sinica.edu.tw wrote: On Thu, Mar 15, 2012 at 01:26:44PM +0700, Mulyadi Santosa wrote: On Thu, Mar 15, 2012 at 09:12, Yue Chen ycyc...@gmail.com wrote: Hi!~ Now I'd like

Re: [Qemu-devel] Debug single program in QEMU

2012-03-15 Thread Yue Chen
. For system mode, I have no good idea on how to track a specific program running on the guest OS. On Thu, Mar 15, 2012 at 09:40:48AM -0400, Yue Chen wrote: But it is hard to localize a specific program instead of lots of logs. On Mar 15, 2012 4:14 AM, 陳韋任 che...@iis.sinica.edu.tw wrote

[Qemu-devel] Debug single program in QEMU

2012-03-14 Thread Yue Chen
Hi!~ Now I'd like to see what the micro-ops (intermediate operations generated by TCG) of a single Linux or Windows program, any approach to do this under QEMU? Thanks.

Re: [Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-12 Thread Yue Chen
, but not in the latest version. On Mon, Mar 12, 2012 at 2:20 AM, Chen Yufei cyfde...@gmail.com wrote: On Mon, Mar 12, 2012 at 5:43 AM, Mulyadi Santosa mulyadi.sant...@gmail.com wrote: Hi On Sun, Mar 11, 2012 at 10:12, Yue Chen ycyc...@gmail.com wrote: I am doing some research based on the QEMU. Does

[Qemu-devel] How to trace all the guest OS instructions and the micro-ops

2012-03-11 Thread Yue Chen
Hi! I am doing some research based on the QEMU. Does anyone know how to get (trace) all the instructions of the guest OS, and get all the intermediate micro-ops ? (Not in the 0.9.1 version) Additionally, how to get the whole memory or each process' memory data of the guest OS? I really

[Qemu-devel] how to judge machine's state in user-level/kernel-level

2011-02-22 Thread Jianhui Yue
hi, All, I am wondering how to determine machine's state in user-level or kernel level from Operating System perspective. what's meaning of CPUState.exception_is_int? Thanks. Jianhui