Michal Privoznik
ac95617d3d
qemu: Reflect MAC address change in live domain XML
...
If a guest changes MAC address on its vNIC, then QEMU emits
NIC_RX_FILTER_CHANGED event (the event is emitted in other cases
too, but that's not important right now). Now, domain XML allows
users to chose whether to trust these events or not:
<interface trustGuestRxFilters='yes|no'/>
For the 'no' case no action is performed and the event is
ignored. But for the 'yes' case, some host side features of
corresponding vNIC (well tap/macvtap device) are tweaked to
reflect changed MAC address. But what is missing is reflecting
this new MAC address in domain XML.
Basically, what happens is: the host sees traffic with new MAC
address, all tools inside the guest see the new MAC address
(including 'virsh domifaddr --source agent') which makes it
harder to match device in the guest with the one in the domain
XML.
Therefore, report this new MAC address as another attribute of
the <mac/> element:
<mac address="52:54:00:a4:6f:91" currentAddress="00:11:22:33:44:55"/>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com >
Reviewed-by: Martin Kletzander <mkletzan@redhat.com >
2025-03-25 11:49:30 +01:00
..
2024-02-08 16:48:47 +01:00
2023-04-20 15:30:18 +02:00
2021-10-12 16:46:45 +02:00
2023-06-02 09:39:10 +02:00
2024-02-08 16:48:47 +01:00
2024-05-09 09:20:29 +01:00
2024-02-08 16:48:47 +01:00
2024-11-15 10:34:29 +01:00
2024-05-09 09:20:29 +01:00
2025-03-21 17:46:08 +01:00
2023-02-21 10:58:59 +01:00
2023-05-17 16:54:23 +02:00
2023-05-17 16:54:23 +02:00
2024-01-17 17:31:12 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2024-10-09 16:00:44 +02:00
2025-03-04 09:31:36 +01:00
2017-08-02 17:00:11 +01:00
2024-11-12 12:07:05 +01:00
2021-03-15 17:31:57 +01:00
2021-03-23 17:55:06 +01:00
2022-10-25 08:37:28 +02:00
2023-10-31 10:04:27 +00:00
2017-08-02 17:00:11 +01:00
2024-02-26 12:10:27 +01:00
2022-04-01 16:33:19 +02:00
2024-06-17 13:31:31 +01:00
2023-10-11 09:43:09 +02:00
2023-10-11 09:43:09 +02:00
2023-07-17 10:43:29 -05:00
2023-04-04 12:16:09 +02:00
2020-08-03 09:27:09 +02:00
2023-09-04 13:32:28 +02:00
2023-10-31 10:04:27 +00:00
2023-07-14 15:19:10 +02:00
2022-04-07 15:10:26 +02:00
2022-04-07 15:10:26 +02:00
2022-04-07 15:10:26 +02:00
2024-05-13 08:57:05 +02:00
2023-10-31 10:04:27 +00:00
2022-05-19 10:10:31 +02:00
2024-02-26 12:10:27 +01:00
2021-06-04 10:56:06 +01:00
2024-02-26 12:10:27 +01:00
2022-05-24 12:19:16 +02:00
2022-06-01 12:27:09 +02:00
2024-02-26 12:10:27 +01:00
2022-04-01 16:33:19 +02:00
2024-07-22 14:43:57 +01:00
2022-04-01 16:33:19 +02:00
2022-04-01 16:33:19 +02:00
2023-01-24 10:24:07 +01:00
2022-04-01 16:33:19 +02:00
2022-04-01 16:33:19 +02:00
2024-02-26 12:10:27 +01:00
2022-03-08 17:40:47 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2024-02-26 12:10:27 +01:00
2022-04-01 16:33:19 +02:00
2022-06-01 12:27:09 +02:00
2025-03-17 12:37:48 +01:00
2022-06-01 12:27:09 +02:00
2025-03-25 11:49:30 +01:00
2024-11-26 13:04:34 +01:00
2025-01-11 20:09:51 -05:00
2024-02-26 12:10:27 +01:00
2024-02-26 12:10:27 +01:00
2024-02-26 12:10:27 +01:00
2024-11-25 10:38:40 +01:00
2024-05-14 16:04:53 +02:00
2024-08-14 09:39:46 +02:00
2022-04-07 17:15:52 +02:00
2024-02-26 12:10:27 +01:00
2025-03-17 12:37:48 +01:00
2022-03-08 17:40:47 +01:00
2023-02-15 12:38:45 +01:00
2024-10-28 12:29:31 +00:00
2024-10-28 12:29:31 +00:00
2024-06-19 12:15:26 +02:00
2025-02-17 15:07:56 +01:00
2024-10-09 16:00:44 +02:00
2023-06-02 09:39:10 +02:00
2023-06-02 09:39:10 +02:00
2022-04-01 16:33:20 +02:00
2022-01-25 16:54:44 +01:00
2017-08-02 15:00:28 -04:00
2024-10-09 16:00:44 +02:00
2022-01-04 15:47:25 +01:00
2017-08-02 17:00:11 +01:00
2024-03-01 12:51:56 +01:00
2024-10-09 16:00:44 +02:00
2024-11-13 22:42:19 +01:00
2024-03-01 12:51:55 +01:00
2024-01-07 23:59:00 -05:00
2022-04-19 16:19:48 +02:00
2022-04-14 11:54:28 +02:00
2020-11-12 15:01:42 +01:00
2022-04-07 15:10:26 +02:00
2024-10-09 16:00:44 +02:00
2024-10-09 16:00:44 +02:00
2024-03-01 12:51:55 +01:00
2024-05-13 08:57:05 +02:00
2022-09-01 13:11:09 +02:00
2022-03-08 17:40:47 +01:00
2023-04-03 09:19:05 +02:00
2025-03-17 11:34:12 +00:00
2022-03-08 17:40:47 +01:00
2023-10-31 10:04:27 +00:00
2023-10-11 09:43:09 +02:00
2024-10-09 16:00:44 +02:00
2022-06-01 12:27:10 +02:00
2024-10-09 16:00:44 +02:00