All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/../test_hotplug_blk: drop unused nic
@ 2026-06-29 20:13 Vladimir Sementsov-Ogievskiy
  2026-08-19 20:15 ` Vladimir Sementsov-Ogievskiy
  2026-09-01 18:27 ` Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2026-06-29 20:13 UTC (permalink / raw)
  To: stefanha
  Cc: pbonzini, zhao1.liu, qemu-block, qemu-devel, vsementsov,
	Daniil Tatianin

From: Daniil Tatianin <d-tatianin@yandex-team.ru>

The test doesn't need any networking, so drop the net card.
Also the test will break if at some moment q35 aliase refers
to machine type with default virtio-net nic, which will clash with
virtio-blk in the test, and

   self.wait_for_console_pattern('virtio_blk virtio0: [vda]')

will not work.

Let's make the test a bit more resistant to experiments with
machine type.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
---
 tests/functional/x86_64/test_hotplug_blk.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/functional/x86_64/test_hotplug_blk.py b/tests/functional/x86_64/test_hotplug_blk.py
index 7ddbfefc21..a9b43fe2e9 100755
--- a/tests/functional/x86_64/test_hotplug_blk.py
+++ b/tests/functional/x86_64/test_hotplug_blk.py
@@ -66,6 +66,7 @@ def test(self) -> None:
         self.set_machine('q35')
 
         self.vm.add_args('-accel', 'kvm')
+        self.vm.add_args("-nic", "none")  # avoid creating default nic
         self.vm.add_args('-device', 'pcie-pci-bridge,id=pci.1,bus=pcie.0')
         self.vm.add_args('-m', '1G')
         self.vm.add_args('-append', 'console=ttyS0 rd.rescue')
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tests/../test_hotplug_blk: drop unused nic
  2026-06-29 20:13 [PATCH] tests/../test_hotplug_blk: drop unused nic Vladimir Sementsov-Ogievskiy
@ 2026-08-19 20:15 ` Vladimir Sementsov-Ogievskiy
  2026-09-01 18:27 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2026-08-19 20:15 UTC (permalink / raw)
  To: stefanha; +Cc: pbonzini, zhao1.liu, qemu-block, qemu-devel, Daniil Tatianin

ping

On 29.06.26 23:13, Vladimir Sementsov-Ogievskiy wrote:
> From: Daniil Tatianin <d-tatianin@yandex-team.ru>
> 
> The test doesn't need any networking, so drop the net card.
> Also the test will break if at some moment q35 aliase refers
> to machine type with default virtio-net nic, which will clash with
> virtio-blk in the test, and
> 
>     self.wait_for_console_pattern('virtio_blk virtio0: [vda]')
> 
> will not work.
> 
> Let's make the test a bit more resistant to experiments with
> machine type.
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> ---
>   tests/functional/x86_64/test_hotplug_blk.py | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/functional/x86_64/test_hotplug_blk.py b/tests/functional/x86_64/test_hotplug_blk.py
> index 7ddbfefc21..a9b43fe2e9 100755
> --- a/tests/functional/x86_64/test_hotplug_blk.py
> +++ b/tests/functional/x86_64/test_hotplug_blk.py
> @@ -66,6 +66,7 @@ def test(self) -> None:
>           self.set_machine('q35')
>   
>           self.vm.add_args('-accel', 'kvm')
> +        self.vm.add_args("-nic", "none")  # avoid creating default nic
>           self.vm.add_args('-device', 'pcie-pci-bridge,id=pci.1,bus=pcie.0')
>           self.vm.add_args('-m', '1G')
>           self.vm.add_args('-append', 'console=ttyS0 rd.rescue')


-- 
Best regards,
Vladimir


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tests/../test_hotplug_blk: drop unused nic
  2026-06-29 20:13 [PATCH] tests/../test_hotplug_blk: drop unused nic Vladimir Sementsov-Ogievskiy
  2026-08-19 20:15 ` Vladimir Sementsov-Ogievskiy
@ 2026-09-01 18:27 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2026-09-01 18:27 UTC (permalink / raw)
  To: Vladimir Sementsov-Ogievskiy
  Cc: pbonzini, zhao1.liu, qemu-block, qemu-devel, Daniil Tatianin

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On Mon, Jun 29, 2026 at 11:13:32PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> From: Daniil Tatianin <d-tatianin@yandex-team.ru>
> 
> The test doesn't need any networking, so drop the net card.
> Also the test will break if at some moment q35 aliase refers
> to machine type with default virtio-net nic, which will clash with
> virtio-blk in the test, and
> 
>    self.wait_for_console_pattern('virtio_blk virtio0: [vda]')
> 
> will not work.
> 
> Let's make the test a bit more resistant to experiments with
> machine type.
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> ---
>  tests/functional/x86_64/test_hotplug_blk.py | 1 +
>  1 file changed, 1 insertion(+)

Thanks, applied to my block tree:
https://gitlab.com/stefanha/qemu/commits/block

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-01 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 20:13 [PATCH] tests/../test_hotplug_blk: drop unused nic Vladimir Sementsov-Ogievskiy
2026-08-19 20:15 ` Vladimir Sementsov-Ogievskiy
2026-09-01 18:27 ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.