Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/arm/pxa2xx_gpio.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/arm/pxa2xx_gpio.c b/hw/arm/pxa2xx_gpio.c
index 576a8eb
Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/display/pl110.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/hw/display/pl110.c b/hw/display/pl110.c
index c069c0b..eae4cde 100644
--- a/hw
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/sparc/sun4m.c | 54 +++---
1 file changed, 19 insertions(+), 35 deletions(-)
diff --git a/hw/sparc/sun4m.c b/hw/sparc
* Split the old SysBus init into an instance_init and a
DeviceClass::realize function
* Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/eccmemctl.c | 25 -
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a
assign DeviceClass::vmsd instead of using vmstate_register function
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 26 --
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index 39e425e950..6afcce4669 100644
--- a
Rebased on the latest master.
This patch set aims for QOM'ifying code relate with sparc.
It is part of my QOM'ify work of qemu code base.
xiaoqiang zhao (9):
hw/misc: QOM'ify eccmemctl.c
hw/dma: QOM'ify sparc32_dma.c
hw/dma: QOM'ify sun4m_iommu.c
hw/misc: QOM
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/sparc64/sun4u.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index d1a6bca873
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/slavio_misc.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/hw/misc/slavio_misc.c b/hw/misc/slavio_misc.c
index edd5de0702
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/dma/sun4m_iommu.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c
index b3cbc54c23..335ef63cbc 100644
--- a/hw/dma
Drop the old SysBus init function and use instance_init
and an realize function
Signed-off-by: xiaoqiang zhao
---
hw/dma/sparc32_dma.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c
index 9d545e412e
Drop the old SysBus init function and use instance_init
and an realize function
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/dma/sparc32_dma.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/dma/sparc32_dma.c b/hw
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
* assign DeviceClass::vmsd instead of using vmstate_register function
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/misc/slavio_misc.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/hw/misc/slavio_misc.c b/hw/misc
* Split the old SysBus init into an instance_init and a
DeviceClass::realize function
* Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/misc/eccmemctl.c | 25 -
1 file changed, 16
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/dma/sun4m_iommu.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c
index b3cbc54c23
This patch set aims for QOM'ifying code relate with sparc.
It is part of my QOM'ify work of qemu code base.
Changes:
v2 -> v3:
* rebased on the latest master
* squash two patches about m48txx_sysbus into one
v1 -> v2:
* rebased on the latest master
xiaoqiang zhao (8):
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/sparc64/sun4u.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/hw/sparc64/sun4u.c b/hw
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
Reviewed-by: Philippe Mathieu-Daudé
---
hw/sparc/sun4m.c | 54 +++---
1 file changed, 19 insertions(+), 35 deletions(-)
diff
);
> +tc = g_new0(TimerContext, 1);
> tc->s = s;
> tc->timer_index = i;
>
> --
> 2.14.2
Reviewed-by: xiaoqiang zhao
> +tc = g_new0(TimerContext, 1);
> tc->s = s;
> tc->timer_index = i;
>
> --
> 2.14.2
Resend due to email blocks.
Reviewed-by: xiaoqiang zhao
Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/display/g364fb.c | 16 +++-
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c
index 70ef2c7453..7a0fe48dd5
split the old SysBus init function into an instance_init
and Device realize function
Signed-off-by: xiaoqiang zhao
---
hw/audio/marvell_88w8618.c | 18 +++---
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c
index
Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/char/exynos4210_uart.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/hw/char/exynos4210_uart.c b/hw/char/exynos4210_uart.c
index
This patch series continues QOM'ify work for milkymist.
See each commit message for details.
xiaoqiang zhao (5):
hw/misc: QOM'ify milkymist-hpdmc.c
hw/misc: QOM'ify milkymist-pfpu.c
hw/sd: QOM'ify milkymist-memcard.c
hw/net: QOM'ify milkymist-minimac2.c
hw
* Split the old SysBus init into an instance_init and a
DeviceClass::realize function
* Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/net/milkymist-minimac2.c | 21 -
1 file changed, 12 insertions(+), 9 deletions(-)
diff
This patch set QOM'ify code about audio devices.
See each commit message for deatils.
xiaoqiang zhao (2):
hw/audio: QOM'ify marvell_88w8618.c
hw/audio: QOM'ify pl041.c
hw/audio/marvell_88w8618.c | 18 +++---
hw/audio/pl041.c | 25 ++-
Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/char/grlib_apbuart.c | 26 +++---
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/hw/char/grlib_apbuart.c b/hw/char/grlib_apbuart.c
index
split the old SysBus init function into an instance_init
and Device realize function
Signed-off-by: xiaoqiang zhao
---
hw/input/milkymist-softusb.c | 21 +
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/milkymist-pfpu.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/misc/milkymist-pfpu.c b/hw/misc/milkymist-pfpu.c
index 3ca25894f1..b1c57cd7f8 100644
--- a/hw
split the old SysBus init function into an instance_init
and Device realize function
Signed-off-by: xiaoqiang zhao
---
hw/audio/pl041.c | 25 ++---
1 file changed, 14 insertions(+), 11 deletions(-)
diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c
index 6e9c104011
split the old SysBus init function into an instance_init
and Device realize function
Signed-off-by: xiaoqiang zhao
---
hw/sd/milkymist-memcard.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/sd/milkymist-memcard.c b/hw/sd/milkymist-memcard.c
This patch set finish QOM'ify work of char devices.
See each commit message for details.
xiaoqiang zhao (2):
hw/char: QOM'ify exynos4210_uart.c
hw/char: QOM'ify grlib_apbuart.c
hw/char/exynos4210_uart.c | 16 ++--
hw/char/grlib_apbuart.c | 26 ++
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/e500.c | 17 -
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index cf8b122afe..792bd79d39 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/milkymist-hpdmc.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/misc/milkymist-hpdmc.c b/hw/misc/milkymist-hpdmc.c
index e6140eec6b..c0fdd2cb2e 100644
--- a/hw
Drop the old and empty SysBus init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/spapr_vio.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c
index cc1e09c568..1739b73a13 100644
--- a/hw/ppc/spapr_vio.c
+++ b/hw/ppc/spapr_vio.c
@@ -548,11 +548,9 @@ static
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/ppce500_spin.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.c
index cf958a9e00..958536f6c6 100644
--- a/hw/ppc
This is some QOM'ify work relate with ppc.
See each commit message for details.
xiaoqiang zhao (4):
hw/gpio: QOM'ify mpc8xxx.c
hw/ppc: QOM'ify e500.c
hw/ppc: QOM'ify ppce500_spin.c
hw/ppc: QOM'ify spapr_vio.c
hw/gpio/mpc8xxx.c | 20 +++-
h
* Drop the old SysBus init function and use instance_init
* Change mpc8xxx_gpio_reset to a DeviceClass::reset function
Signed-off-by: xiaoqiang zhao
---
hw/gpio/mpc8xxx.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/hw/gpio/mpc8xxx.c b/hw/gpio
This patch set aims for QOM'ifying code relate with sparc.
It is part of my QOM'ify work of qemu code base.
changes since v1:
* rebased on the latest master
xiaoqiang zhao (9):
hw/misc: QOM'ify eccmemctl.c
hw/dma: QOM'ify sparc32_dma.c
hw/dma: QOM'ify sun4m_i
* split the old SysBus init function into an instance_init
and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 35 ++-
1 file changed, 18 insertions(+), 17 deletions
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/dma/sun4m_iommu.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c
index b3cbc54c23..335ef63cbc 100644
--- a/hw/dma
assign DeviceClass::vmsd instead of using vmstate_register function
Signed-off-by: xiaoqiang zhao
---
hw/timer/m48t59.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c
index eff259ef96..3a9f541c9b 100644
--- a/hw/timer/m48t59.c
+++ b
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/slavio_misc.c | 43 +--
1 file changed, 17 insertions(+), 26 deletions(-)
diff --git a/hw/misc/slavio_misc.c b/hw/misc/slavio_misc.c
index edd5de0702
rename slavio_timer_init1 to slavio_timer_init and assign
it to slavio_timer_info.instance_init, then we drop the
SysBusDeviceClass::init
Signed-off-by: xiaoqiang zhao
---
hw/timer/slavio_timer.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/hw/timer
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/sparc/sun4m.c | 54 +++---
1 file changed, 19 insertions(+), 35 deletions(-)
diff --git a/hw/sparc/sun4m.c b/hw/sparc
* Split the old SysBus init into an instance_init and a
DeviceClass::realize function
* Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/misc/eccmemctl.c | 25 -
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a
Drop the old SysBusDeviceClass::init and use instance_init
or DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/sparc64/sun4u.c | 20 +---
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index d347b6616d
Drop the old SysBus init function and use instance_init
and an realize function
Signed-off-by: xiaoqiang zhao
---
hw/dma/sparc32_dma.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c
index 9d545e412e
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/e500.c | 17 -
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index cf8b122afe..792bd79d39 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500
This is some QOM'ify work relate with ppc.
See each commit message for details.
changes in v2:
remove empty function 'spapr_vio_bridge_init'
xiaoqiang zhao (4):
hw/gpio: QOM'ify mpc8xxx.c
hw/ppc: QOM'ify e500.c
hw/ppc: QOM'ify ppce500_spin.c
hw/ppc:
Drop the old and empty SysBus init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/spapr_vio.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c
index cc1e09c568..8bfc5f971f 100644
--- a/hw/ppc/spapr_vio.c
+++ b/hw/ppc/spapr_vio.c
@@ -538,21 +538,11
* Drop the old SysBus init function and use instance_init
* Change mpc8xxx_gpio_reset to a DeviceClass::reset function
Signed-off-by: xiaoqiang zhao
---
hw/gpio/mpc8xxx.c | 20 +++-
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/hw/gpio/mpc8xxx.c b/hw/gpio
Drop the old SysBus init function and use instance_init
Signed-off-by: xiaoqiang zhao
---
hw/ppc/ppce500_spin.c | 18 --
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/hw/ppc/ppce500_spin.c b/hw/ppc/ppce500_spin.c
index cf958a9e00..958536f6c6 100644
--- a/hw/ppc
Drop the old Sysbus init and use instance_init and
DeviceClass::realize instead
Signed-off-by: xiaoqiang zhao
---
hw/display/g364fb.c | 40 +---
1 file changed, 21 insertions(+), 19 deletions(-)
diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c
index
unix_connect_saddr now support abstract address type
By default qemu does not support abstract UNIX domain
socket address. Add this ability to make qemu handy
when abstract address is needed.
Abstract address is marked by prefixing the address name with a '@'.
Signed-off-by: xiao
unix_connect_saddr now support abstract address type
By default qemu does not support abstract UNIX domain
socket address. Add this ability to make qemu handy
when abstract address is needed.
Abstract address is marked by prefixing the address name with a '@'.
Signed-off-by: xiao
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
---
qemu-options.hx | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 292d4e7c0c..ce73014f8e 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2930,7
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
---
tests/test-util-sockets.c | 83 +++
1 file changed, 83 insertions(+)
diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c
index 5fd947c7bf
:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on
Signed-off-by: xiaoqiang zhao
---
chardev/char-socket.c | 4
chardev/char.c| 7 +++
qapi/sockets.json | 9 -
util/qemu-sockets.c | 39
By default qemu does not support abstract UNIX domain
socket address. Add this ability to make qemu handy
when abstract address is needed.
Changes since v2:
* reorganize code to cover both connect and listen
* qapi related changes
* add test cases and update qemu-options documents
Xiaoqiang
:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on
Signed-off-by: xiaoqiang zhao
---
chardev/char-socket.c | 4
chardev/char.c| 7 +++
qapi/sockets.json | 9 -
util/qemu-sockets.c | 39
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
---
qemu-options.hx | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 292d4e7c0c..ce73014f8e 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -2930,7
* add test cases and update qemu-options documents
Xiaoqiang Zhao (3):
qemu-sockets: add abstract UNIX domain socket support
tests/util-sockets: add abstract unix socket cases
qemu-options: updates for abstract unix sockets
chardev/char-socket.c | 4 ++
chardev/char.c| 7
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
---
tests/test-util-sockets.c | 83 +++
1 file changed, 83 insertions(+)
diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c
index 5fd947c7bf
在 2020/5/13 下午11:49, Daniel P. Berrangé 写道:
On Sun, May 10, 2020 at 02:14:21PM +0800, xiaoqiang zhao wrote:
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
---
tests/test-util-sockets.c | 83 +++
1 file
qemu does not support abstract UNIX domain
socket address. Add this ability to make qemu handy
when abstract address is needed.
Changes since v3:
* rebase on master
* refine qapi document statement
* use random names to avoid name clash in unit test
Xiaoqiang Zhao (3):
qemu-sockets: add
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
qemu-options.hx | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index e2dca8a4e9..e63cc1b4b4 100644
--- a/qemu-options.hx
:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
chardev/char-socket.c | 4
chardev/char.c| 7 +++
qapi/sockets.json | 8 +++-
util
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
---
tests/test-util-sockets.c | 91 +++
1 file changed, 91 insertions(+)
diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c
index 5fd947c7bf
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
qemu-options.hx | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index e2dca8a4e9..e63cc1b4b4 100644
--- a/qemu-options.hx
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
---
tests/test-util-sockets.c | 92 +++
1 file changed, 92 insertions(+)
diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c
index 5fd947c7bf
nit test
Xiaoqiang Zhao (3):
qemu-sockets: add abstract UNIX domain socket support
tests/util-sockets: add abstract unix socket cases
qemu-options: updates for abstract unix sockets
chardev/char-socket.c | 4 ++
chardev/char.c| 7 +++
qapi/sockets.json | 8 +++-
q
:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
chardev/char-socket.c | 4
chardev/char.c| 7 +++
qapi/sockets.json | 8 +++-
util
在 2020/5/16 上午1:37, Eric Blake 写道:
On 5/14/20 11:32 PM, xiaoqiang zhao wrote:
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
qemu-options.hx | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
I'd suggest li
cument statement
* use random names to avoid name clash in unit test
Xiaoqiang Zhao (3):
qemu-sockets: add abstract UNIX domain socket support
tests/util-sockets: add abstract unix socket cases
qemu-options: updates for abstract unix sockets
chardev/char-socket.c | 4 ++
chardev/
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
qemu-options.hx | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index e2dca8a4e9..4ee7e6c772 100644
--- a/qemu-options.hx
:
-monitor unix:/tmp/unix.socket,abstract,tight=off
OR
-chardev socket,path=/tmp/unix.socket,id=unix1,abstract,tight=on
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
chardev/char-socket.c | 4
chardev/char.c| 7 +++
qapi/sockets.json | 8 +++-
util
add cases to test tight and non-tight for abstract address type
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
tests/test-util-sockets.c | 92 +++
1 file changed, 92 insertions(+)
diff --git a/tests/test-util-sockets.c b/tests/test-util
在 2020/5/16 上午11:13, xiaoqiang zhao 写道:
add options documents changes for -chardev
Signed-off-by: xiaoqiang zhao
Reviewed-by: Daniel P. Berrangé
---
qemu-options.hx | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index
kets.c b/tests/test-util-sockets.c
index 2ca1e99f17..ca6671f9bf 100644
--- a/tests/test-util-sockets.c
+++ b/tests/test-util-sockets.c
@@ -312,6 +312,7 @@ static void test_socket_unix_abstract_good(void)
g_thread_join(serv);
g_free(abstract_sock_name);
+g_rand_free(r);
}
#endif
Reviewed-by: xiaoqiang zhao
cy_instance_id(dev, base, 2);
qdev_init_nofail(dev);
memory_region_init_io(&s->io, NULL, &serial_mm_ops[end], s,
Reviewed-by: xiaoqiang zhao
il/id.c
@@ -34,6 +34,7 @@ bool id_wellformed(const char *id)
static const char *const id_subsys_str[ID_MAX] = {
[ID_QDEV] = "qdev",
[ID_BLOCK] = "block",
+[ID_CHR] = "chr",
};
/*
Looks good to me.
Reviewed-by: xiaoqiang zhao
cy_instance_id(dev, base, 2);
qdev_init_nofail(dev);
memory_region_init_io(&s->io, NULL, &serial_mm_ops[end], s,
Resend, cc peter
Reviewed-by: xiaoqiang zhao
301 - 386 of 386 matches
Mail list logo