blob: e1bf6acaeb7c75023d84bdb4c3b0bbaf01fbcb63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
mistranslation: 0.996
virtual: 0.987
device: 0.921
network: 0.877
graphic: 0.873
performance: 0.856
semantic: 0.801
peripherals: 0.729
arm: 0.691
assembly: 0.684
ppc: 0.649
hypervisor: 0.647
VMM: 0.640
socket: 0.602
vnc: 0.542
architecture: 0.538
debug: 0.519
PID: 0.511
KVM: 0.506
risc-v: 0.466
kernel: 0.451
i386: 0.405
user-level: 0.374
TCG: 0.362
x86: 0.333
register: 0.309
files: 0.285
permissions: 0.283
boot: 0.281
hmp command `hostfwd_remove` does not work on running vm
On a running VM, I ran the following two hmp commands:
"hostfwd_add tcp::43210-:43210" --> WORKS
'hostfwd_remove tcp::43210-:43210" --> DOES NOT WORK. returns 'invalid format'
QEMU version 5.1
Looks like intended behavior:
(qemu) help hostfwd_add
hostfwd_add [netdev_id] [tcp|udp]:[hostaddr]:hostport-[guestaddr]:guestport -- redirect TCP or UDP connections from host to guest (requires -net user)
(qemu) help hostfwd_remove
hostfwd_remove [netdev_id] [tcp|udp]:[hostaddr]:hostport -- remove host-to-guest TCP or UDP redirection
Not sure I understand. The intended behavior is to remove the ports. It doesn't do that. And it returns 'invalid format'.
(qemu) hostfwd_add tcp::43210-:43210
(qemu) hostfwd_remove tcp::43210-:43210
invalid format
My bad. The correct command is this:
(qemu) hostfwd_remove tcp::43210
This bug can be closed.
|