Re:Re: how hotplug devices onto pcie-to-pci-bridge

2022-11-07 Thread longguang.yue
do by default. Then they >will be recognized as virtio-1.0 devices and use a mode that doesn't >require any memory to be mapped for them. > Do I have to add as many pcie-root-ports as posibble in advance? At 2022-11-08 02:53:55, "Laine Stump" wrote: >On 11/6/22 3:28

Re:Re: how hotplug devices onto pcie-to-pci-bridge

2022-11-06 Thread longguang.yue
0xfca01fff] [ 0.700040] pci :06:02.0: reg 0x20: [mem 0xfb404000-0xfb407fff 64bit pref] -- At 2022-11-04 05:28:47, "Laine Stump" wrote: >On 11/3/22 6:35 AM, longguang.yue wrote: >> Hi, all >>I have add two pcie-to-pci-brid

how hotplug devices onto pcie-to-pci-bridge

2022-11-03 Thread longguang.yue
Hi, all I have add two pcie-to-pci-bridge controllers, how hotplug devices onto this two controllers? and libvirt knows to plug onto pci-bridge when there are no pcie-ports. defaultly libvirt plugs devices onto pcie-port. thanks

Re:how to change nic's tx/rx ring size inside vm

2021-12-30 Thread longguang.yue
-12-30 17:06:05, "longguang.yue" wrote: >Hi, all: > >my environment is qemu-kvm-6.0.0, 4.18.0-240, libvirt 7.4.0. vm is configured >like this queues='4' rx_queue_size='1024' tx_queue_size='1024'. >inside vm i can not change nic's ring size.

how to change nic's tx/rx ring size inside vm

2021-12-30 Thread longguang.yue
Hi, all: my environment is qemu-kvm-6.0.0, 4.18.0-240, libvirt 7.4.0. vm is configured like this queues='4' rx_queue_size='1024' tx_queue_size='1024'. inside vm i can not change nic's ring size. changing tx leads to error 'Cannot set device ring parameters: Operation not supported'. chan

can cgroup(cpu,mem) limit qemu and obtain right usage

2021-12-07 Thread longguang.yue
Hi, all: kata runs qemu as a kubernetes pod and use cgroup to limit cpu/memory. my question are : 1. how libvirt obtain qemu's cpu and memory usage, how about non-root mode cpu usage? 2. if qemu is limited in cgroups , does that usage include non-root mode cpu usage? thanks

for rbd, how to use qmp directly to add dick

2021-10-31 Thread longguang.yue
Hi, all:     in my case, i need to add device via qmp.  but for rbd  drive needs a secret object. how to produce secret object. 'base64 -d' outputs unreadable code . -object secret,id=virtio-disk0-secret0,data=2YVH6svMZa42RfVx8MbIIVjtU6iGO8QzFADuDnLk7BU=,keyid=masterKey0,iv=/m3QyHQ33NeME

Re:Re: failed to start vm after add vsock device

2021-01-28 Thread longguang.yue
=/run/vc/vm/efda32ca6a93491ac173dc2ad8a38ac095abab3bd8147a1101851f2a0a8d9012/vhost-fs.sock -device vhost-user-fs-pci,chardev=char-c91f3c6a619cec75,tag=kataShared,romfile= At 2021-01-27 21:31:49, "Michal Privoznik" wrote: >On 1/26/21 2:13 PM, longguang.yue wrote: >> Hi, all

failed to start vm after add vsock device

2021-01-27 Thread longguang.yue
Hi, all: there is no error when launch qemu-kvm from cli directly, but vm fails to start via libvirtd. i have tried to chmod 0666 /dev/vhost-vsock. error: internal error: qemu unexpectedly closed the monitor: 2021-01-26T13:06:06.403097Z qemu-kvm: -device vhost-vsock-pci,id=vhost-vsock-pc

Re: [libvirt] libvirt-2.0.0 build error (hidden symbol libvirt_event_poll_update_handle_semaphore)

2017-06-28 Thread longguang.yue
2017 at 05:34:59PM +0800, longguang.yue wrote: >> Hi, all: >> i back port a patch which makes qemu depends on util directory. >> so i correct its dependency by applying a patch. but another error occur. >> the patch is >> http:

[libvirt] libvirt-2.0.0 build error (hidden symbol libvirt_event_poll_update_handle_semaphore)

2017-06-27 Thread longguang.yue
Hi, all: i back port a patch which makes qemu depends on util directory. so i correct its dependency by applying a patch. but another error occur. the patch is http://libvirt.org/git/?p=libvirt.git;a=commit;h=57b5e27d3d74f8dbb77ac909b405d99d555eca46 the patch fix dependency : --- libvirt-2.0

[libvirt] libvirt-2.0.0 build error (hidden symbol libvirt_event_poll_update_handle_semaphore)

2017-06-26 Thread longguang.yue
Hi, all: i back port a patch which make qemu depends on util directory. so i correct its dependency by applying a patch. but another error occur. the patch is : --- libvirt-2.0.0/src/Makefile.am 2016-06-27 22:12:20.523191076 +0800 +++ libvirt-2.0.0-ok/src/Makefile.am2017-06-22 12:25

[libvirt] libvirt-2.0.0 build error (hidden symbol libvirt_event_poll_update_handle_semaphore)

2017-06-22 Thread longguang.yue
Hi, all: i back port a patch which make qemu depends on util directory. so i correct its dependency by applying a patch. but another error occur. the patch is : --- libvirt-2.0.0/src/Makefile.am 2016-06-27 22:12:20.523191076 +0800 +++ libvirt-2.0.0-ok/src/Makefile.am2017-06-22 12:25

[libvirt] is there a plan to support internal-rbd-snapshot?

2016-06-20 Thread longguang.yue
hi, is there a plan to support internal-rbd-snapshot? any one is responsible for it? thanks-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] sasl auth:add default mapping of credentials to machines

2016-06-16 Thread longguang.yue
this patch is for help document thanks very much At 2016-06-16 17:39:12, "Daniel P. Berrange" wrote: >On Mon, Jun 13, 2016 at 05:58:06PM +0800, longguang.yue wrote: >> From 98a2e7784f14f1c69dbb93e0bfb6539987aa16d4 Mon Sep 17 00:00:00 2001 >> From: yuelongguang >

[libvirt] [PATCH] sasl auth:add default mapping of credentials to machines

2016-06-13 Thread longguang.yue
hi,all: in production environment, it is important to keep safe. libvirt does automatic validation, but it needs to set up mapping for each machine. this patch is to add default certificate mapping , make it easy in lange scale environment. maybe another way is using regex to do exact matc

[libvirt] what are the differences among disk cache attribute

2014-04-16 Thread longguang.yue
hi,all there are "default", "none", "writethrough", "writeback", "directsync", "unsafe" cache options 1. could you explain what is default and none? exactly what it does and not does? 2. what is the difference between unsafe and (default or none)? 3. after a long time of running , it see

Re: [libvirt] is there a way to convert vm's filter into comandline

2014-03-27 Thread longguang.yue
Dan Berrange: if there are some one work with you to refactore nwfilter architeture. i hope i can help thanks At 2014-03-27 17:41:15,"Laine Stump" wrote: >On 03/27/2014 04:43 AM, Eric Blake wrote: >> On 03/26/2014 07:20 PM, bigclouds wrote: >>> hi,all >>> >>> is there a way to conve

Re: [libvirt] is there a way to convert vm's filter into comandline

2014-03-27 Thread longguang.yue
killing all of the shell script code ? you mean nwfilter of libvirt does not exist any more? yes. nwfilter code is horrible . maybe we can think of a better way. after all ip|eb tables is complicated, and must be done, user or libvirt. thanks At 2014-03-27 18:57:23,"Daniel P. Berran