Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-08 Thread Zhipeng Lu
allows one disk attached to it so it's easier to make it a element. Paolo Il sab 3 dic 2022, 13:52 Zhipeng Lu <mailto:luzhip...@cestc.cn>> ha scritto: Could you give the detail qemu cmdline about usb-bot? 在 2022/12/2 17:40, Paolo Bonzini 写道: > On 12/2/22 03:26, Zhip

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-03 Thread Zhipeng Lu
Could you give the detail qemu cmdline about usb-bot? 在 2022/12/2 17:40, Paolo Bonzini 写道: On 12/2/22 03:26, Zhipeng Lu wrote: NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda 8:0    0  100M  1 disk vda   252:0    0   10G  0 disk ├─vda1    252:1    0    1G  0 part

Re: [PATCH] blockdev: add 'media=cdrom' argument to support usb cdrom emulated as cdrom

2022-12-01 Thread Zhipeng Lu
disk vda 252:00 10G 0 disk ├─vda1252:101G 0 part /boot └─vda2 252:209G 0 part ├─rhel-root 253:008G 0 lvm / └─rhel-swap 253:101G 0 lvm [SWAP] lshw -short|grep cdrom -i No cdrom. My patch is to solve this problem, usb cdrom em

[Qemu-devel] [PATCH v2] qga: replace GetIfEntry

2017-11-03 Thread ZhiPeng Lu
The data obtained by GetIfEntry is 32 bits, and it may overflow. Thus using GetIfEntry2 instead of GetIfEntry. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- qga/commands-win32.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git

[Qemu-devel] [PATCH v2] net: add print link status of nic in print_net_client function

2017-11-03 Thread ZhiPeng Lu
We can directly know the information of vm by executing "info network" command, including the link state of nics, without executing other commands again. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Reviewed-by: Jiyun Fan <fan.ji...@zte.com.cn> Reviewed-by: Phil

[Qemu-devel] [PATCH] net: add print link status of nics in print_net_client function

2017-10-19 Thread ZhiPeng Lu
We can directly know the information of vm by executing "info network" command, including the link state of nics, without excuting other commands again. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Reviewed-by: Jiyun Fan <fan.ji...@zte.com.cn> --- net/net.c | 6 +++

[Qemu-devel] [PATCH v7 RESEND] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-09-12 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- v1->v2: - correct some spelling mistake and add the s

[Qemu-devel] [PATCH v7 RESEND] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-09-12 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> v1->v2: - correct some spelling mistake and add the s

[Qemu-devel] [PATCH] vhost: don't set vring call fd to -1 in vhost_virtqueue_start for vhost-user

2017-08-20 Thread ZhiPeng Lu
port status is down by executing the command "ovs-vsctl list interface" in host of running the guest. The network is ok if it doesn't set vring call fd to -1 in vhost_virtqueue_start. The patch doesn't set vring call fd to -1 for vhost-user. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.co

[Qemu-devel] [PATCH] fsdev: fix memory leak in main()

2017-07-26 Thread ZhiPeng Lu
@rpath and @ sock_name are not freed and leaked. Signed-off-by: Zhipeng Lu lu.zhip...@zte.com.cn --- fsdev/virtfs-proxy-helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index 6c066ec..8e48500 100644 --- a/fsdev/virtfs-proxy

[Qemu-devel] [PATCH v7] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> v1->v2: - correct some spelling mistake and add the s

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> v1->v2: - correct some spelling mistake and add the s

[Qemu-devel] [PATCH v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-19 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> v1->v2: - correct some spelling mistake and add the s

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-19 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- qga/commands-posix.

[Qemu-devel] [PATCH RESEND v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-04 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- qga/commands-posix.

[Qemu-devel] [PATCH RESEND v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-05-12 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH] hmp: add 'info virtio-pci-status id' command

2017-05-01 Thread ZhiPeng Lu
mp "info virtio-pci-status usb" the 'info virtio_pci_status' command only supports virtio pci devices Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- hmp-commands-info.hx| 14 ++ hw/pci/pci-stub.c | 6 ++ hw/virtio/virtio-pci.c | 47 +

[Qemu-devel] [PATCH v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-28 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH v5] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-27 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH v4] qga: Add support network interface statistics in

2017-04-24 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH v3] qga: Add support network interface statistics in

2017-04-21 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH v3] qga: Add support network interface statistics in

2017-04-21 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very useful for us to monitor and analyze network traffic. Signed-off-by: ZhiPeng Lu <lu.zhi...@zte.com.cn> Signed-off-by: Daniel P. Berrange <berra...@redhat.com> ---

[Qemu-devel] [PATCH] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-20 Thread ZhiPeng Lu
we can get the network interface statistics inside a virtual machine by guest-network-get-interfaces command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: DanielP.Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH v2] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-04-20 Thread ZhiPeng Lu
we can get the network inetrface statistics inside a virtual machine by guest-network-get-interfaces command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> Signed-off-by: DanielP.Berrange <berra...@redhat.com&

[Qemu-devel] [PATCH] qemu-ga: add guest-network-get-interface-stat command

2017-04-19 Thread ZhiPeng Lu
we can get the network card statistics inside a virtual machine by guest-network-get-interface-stat command. it is very userful for us to monitor and analyze network traff. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- qga/commands-posix.c

[Qemu-devel] [PATCH] vhost: skip RAM device memory sections

2017-04-07 Thread ZhiPeng Lu
not exist.So let's just skip RAM device memory. Signed-off-by: ZhiPeng Lu <lu.zhip...@zte.com.cn> --- hw/virtio/vhost.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 613494d..c1ff98f 100644 --- a/hw/virtio/vhost.c +++ b/hw/