reference implementation of RSS and hash report
v3 cover reference implementation of RSS and hash report
Support for VIRTIO_NET_F_RSS and VIRTIO_NET_F_HASH_REPORT features in QEMU for reference purpose. Implements Toeplitz hash calculation for incoming packets according to configuration provided by driver. Uses calculated hash for decision on receive virtqueue and/or reports the hash in the virtio header
Changes from v2:
Implemented migration support
Added implementation of hash report
Changed reporting of error during processing of command (per review of v2)
Cosmetic changes per v2 review
Yuri Benditovich (6):
virtio-net: introduce RSS and hash report features
virtio-net: implement RSS configuration command
virtio-net: implement RX RSS processing
virtio-net: reference implementation of hash report
virtio-net: add migration support for RSS and hast report
tap: allow extended virtio header with hash info
hw/net/trace-events | 3 + hw/net/virtio-net.c | 424 +++++++++++++++++++++++++++++++-- include/hw/virtio/virtio-net.h | 19 ++ net/tap.c | 11 +- 4 files changed, 440 insertions(+), 17 deletions(-)
Signature · 1 line
2.17.1
PATCH v3 1/6 virtio-net: introduce RSS and hash report features
--- hw/net/virtio-net.c | 95 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+)
hw/net/virtio-net.c +95 -0
@@ -71,6 +71,101 @@#define VIRTIO_NET_IP6_ADDR_SIZE 32/* ipv6 saddr + daddr */ #define VIRTIO_NET_MAX_IP6_PAYLOAD VIRTIO_NET_MAX_TCP_PAYLOAD +/* TODO: remove after virtio-net header update */ +#if !defined(VIRTIO_NET_RSS_HASH_TYPE_IPv4) +#define VIRTIO_NET_F_HASH_REPORT 57/* Supports hash report */ +#define VIRTIO_NET_F_RSS 60/* Supports RSS RX steering */ + +/* supported/enabled hash types */ +#define VIRTIO_NET_RSS_HASH_TYPE_IPv4 (1 << 0) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv4 (1 << 1) +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv4 (1 << 2) +#define VIRTIO_NET_RSS_HASH_TYPE_IPv6 (1 << 3) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv6 (1 << 4) +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv6 (1 << 5) +#define VIRTIO_NET_RSS_HASH_TYPE_IP_EX (1 << 6) +#define VIRTIO_NET_RSS_HASH_TYPE_TCP_EX (1 << 7) +#define VIRTIO_NET_RSS_HASH_TYPE_UDP_EX (1 << 8) + +#define __le16 uint16_t +#define __le32 uint32_t +#define __u8 uint8_t +#define __u16 uint16_t +#define __u32 uint32_t + +struct virtio_net_config_with_rss { +/* The config defining mac address (if VIRTIO_NET_F_MAC) */ +__u8 mac[ETH_ALEN ]; +/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ +__u16 status; +/* +* Maximum number of each of transmit and receive queues; +* see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ. +* Legal values are between 1 and 0x8000 +*/ +__u16 max_virtqueue_pairs; +/* Default maximum transmit unit advice */ +__u16 mtu; +/* +* speed, in units of 1Mb. All values 0 to INT_MAX are legal. +* Any other value stands for unknown. +*/ +__u32 speed; +/* +* 0x00 - half duplex +* 0x01 - full duplex +* Any other value stands for unknown. +*/ +__u8 duplex; +/* maximum size of RSS key */ +__u8 rss_max_key_size; +/* maximum number of indirection table entries */ +__le16 rss_max_indirection_table_length; +/* bitmask of supported VIRTIO_NET_RSS_HASH_ types */ +__le32 supported_hash_types; +} __attribute__((packed)); + +#define virtio_net_config virtio_net_config_with_rss + +struct virtio_net_hdr_v1_hash { +struct virtio_net_hdr_v1 hdr; +__le32 hash_value; +#define VIRTIO_NET_HASH_REPORT_NONE 0 +#define VIRTIO_NET_HASH_REPORT_IPv4 1 +#define VIRTIO_NET_HASH_REPORT_TCPv4 2 +#define VIRTIO_NET_HASH_REPORT_UDPv4 3 +#define VIRTIO_NET_HASH_REPORT_IPv6 4 +#define VIRTIO_NET_HASH_REPORT_TCPv6 5 +#define VIRTIO_NET_HASH_REPORT_UDPv6 6 +#define VIRTIO_NET_HASH_REPORT_IPv6_EX 7 +#define VIRTIO_NET_HASH_REPORT_TCPv6_EX 8 +#define VIRTIO_NET_HASH_REPORT_UDPv6_EX 9 +__le16 hash_report; +__le16 padding; +}; + +/* +* The command VIRTIO_NET_CTRL_MQ_RSS_CONFIG has the same effect as +* VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET does and additionally configures +* the receive steering to use a hash calculated for incoming packet +* to decide on receive virtqueue to place the packet. The command +* also provides parameters to calculate a hash and receive virtqueue. +*/ +struct virtio_net_rss_config { +__le32 hash_types; +__le16 indirection_table_mask; +__le16 unclassified_queue; +__le16 indirection_table[1 /* + indirection_table_mask */ ]; +__le16 max_tx_vq; +__u8 hash_key_length; +__u8 hash_key_data[/* hash_key_length */ ]; +}; + +#define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1 +#define VIRTIO_NET_CTRL_MQ_HASH_CONFIG 2 + +#endif +/* Purge coalesced packets timer interval, This value affects the performance a lot, and should be tuned carefully, '300000'(300us) is the recommended value to pass the WHQL test, '50000' can gain 2x netperf throughput with
Signature · 1 line
2.17.1
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 24 lines · Yuri Benditovich
Signed-off-by Yuri Benditovich <[email protected]>--- hw/net/virtio-net.c | 95 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+)hw/net/virtio-net.c +11
-0@@ -71,6 +71,101 @@#define VIRTIO_NET_IP6_ADDR_SIZE 32/* ipv6 saddr + daddr */ #define VIRTIO_NET_MAX_IP6_PAYLOAD VIRTIO_NET_MAX_TCP_PAYLOAD +/* TODO: remove after virtio-net header update */ +#if !defined(VIRTIO_NET_RSS_HASH_TYPE_IPv4) +#define VIRTIO_NET_F_HASH_REPORT 57/* Supports hash report */ +#define VIRTIO_NET_F_RSS 60/* Supports RSS RX steering */ + +/* supported/enabled hash types */ +#define VIRTIO_NET_RSS_HASH_TYPE_IPv4 (1 << 0) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv4 (1 << 1) +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv4 (1 << 2) +#define VIRTIO_NET_RSS_HASH_TYPE_IPv6 (1 << 3) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv6 (1 << 4)
hw/net/virtio-net.c line 94
Quoted 10 lines
hw/net/virtio-net.c +10
-0+#define VIRTIO_NET_RSS_HASH_TYPE_UDPv6 (1 << 5) +#define VIRTIO_NET_RSS_HASH_TYPE_IP_EX (1 << 6) +#define VIRTIO_NET_RSS_HASH_TYPE_TCP_EX (1 << 7) +#define VIRTIO_NET_RSS_HASH_TYPE_UDP_EX (1 << 8) + +#define __le16 uint16_t +#define __le32 uint32_t +#define __u8 uint8_t +#define __u16 uint16_t +#define __u32 uint32_t
Let's just use uint16_t etc directly please.
Quoted 23 lines
hw/net/virtio-net.c +23
-0+struct virtio_net_config_with_rss { +/* The config defining mac address (if VIRTIO_NET_F_MAC) */ +__u8 mac[ETH_ALEN ]; +/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ +__u16 status; +/* +* Maximum number of each of transmit and receive queues; +* see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ. +* Legal values are between 1 and 0x8000 +*/ +__u16 max_virtqueue_pairs; +/* Default maximum transmit unit advice */ +__u16 mtu; +/* +* speed, in units of 1Mb. All values 0 to INT_MAX are legal. +* Any other value stands for unknown. +*/ +__u32 speed; +/* +* 0x00 - half duplex +* 0x01 - full duplex +* Any other value stands for unknown. +*/
hw/net/virtio-net.c line 128
Quoted 10 lines
hw/net/virtio-net.c +10
-0+__u8 duplex; +/* maximum size of RSS key */ +__u8 rss_max_key_size; +/* maximum number of indirection table entries */ +__le16 rss_max_indirection_table_length; +/* bitmask of supported VIRTIO_NET_RSS_HASH_ types */ +__le32 supported_hash_types; +} __attribute__((packed)); + +#define virtio_net_config virtio_net_config_with_rss
Do we have to? Let's just tweak code to do the right thing...
Quoted 45 lines
hw/net/virtio-net.c +40
-0+ +struct virtio_net_hdr_v1_hash { +struct virtio_net_hdr_v1 hdr; +__le32 hash_value; +#define VIRTIO_NET_HASH_REPORT_NONE 0 +#define VIRTIO_NET_HASH_REPORT_IPv4 1 +#define VIRTIO_NET_HASH_REPORT_TCPv4 2 +#define VIRTIO_NET_HASH_REPORT_UDPv4 3 +#define VIRTIO_NET_HASH_REPORT_IPv6 4 +#define VIRTIO_NET_HASH_REPORT_TCPv6 5 +#define VIRTIO_NET_HASH_REPORT_UDPv6 6 +#define VIRTIO_NET_HASH_REPORT_IPv6_EX 7 +#define VIRTIO_NET_HASH_REPORT_TCPv6_EX 8 +#define VIRTIO_NET_HASH_REPORT_UDPv6_EX 9 +__le16 hash_report; +__le16 padding; +}; + +/* +* The command VIRTIO_NET_CTRL_MQ_RSS_CONFIG has the same effect as +* VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET does and additionally configures +* the receive steering to use a hash calculated for incoming packet +* to decide on receive virtqueue to place the packet. The command +* also provides parameters to calculate a hash and receive virtqueue. +*/ +struct virtio_net_rss_config { +__le32 hash_types; +__le16 indirection_table_mask; +__le16 unclassified_queue; +__le16 indirection_table[1 /* + indirection_table_mask */ ]; +__le16 max_tx_vq; +__u8 hash_key_length; +__u8 hash_key_data[/* hash_key_length */ ]; +}; + +#define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1 +#define VIRTIO_NET_CTRL_MQ_HASH_CONFIG 2 + +#endif +/* Purge coalesced packets timer interval, This value affects the performance a lot, and should be tuned carefully, '300000'(300us) is the recommended value to pass the WHQL test, '50000' can gain 2x netperf throughput with Signature · 1 line
2.17.1
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 65 lines · Michael S. Tsirkin
Quoted 24 lines · Yuri Benditovich
Signed-off-by Yuri Benditovich <[email protected]>--- hw/net/virtio-net.c | 95 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+)hw/net/virtio-net.c +11
-0@@ -71,6 +71,101 @@#define VIRTIO_NET_IP6_ADDR_SIZE 32/* ipv6 saddr + daddr */ #define VIRTIO_NET_MAX_IP6_PAYLOAD VIRTIO_NET_MAX_TCP_PAYLOAD +/* TODO: remove after virtio-net header update */ +#if !defined(VIRTIO_NET_RSS_HASH_TYPE_IPv4) +#define VIRTIO_NET_F_HASH_REPORT 57/* Supports hash report */ +#define VIRTIO_NET_F_RSS 60/* Supports RSS RX steering */ + +/* supported/enabled hash types */ +#define VIRTIO_NET_RSS_HASH_TYPE_IPv4 (1 << 0) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv4 (1 << 1) +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv4 (1 << 2) +#define VIRTIO_NET_RSS_HASH_TYPE_IPv6 (1 << 3) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv6 (1 << 4)hw/net/virtio-net.c line 94
Quoted 10 lines
hw/net/virtio-net.c +10
-0+#define VIRTIO_NET_RSS_HASH_TYPE_UDPv6 (1 << 5) +#define VIRTIO_NET_RSS_HASH_TYPE_IP_EX (1 << 6) +#define VIRTIO_NET_RSS_HASH_TYPE_TCP_EX (1 << 7) +#define VIRTIO_NET_RSS_HASH_TYPE_UDP_EX (1 << 8) + +#define __le16 uint16_t +#define __le32 uint32_t +#define __u8 uint8_t +#define __u16 uint16_t +#define __u32 uint32_tLet's just use
uint16_tetc directly please.Quoted 27 lines
hw/net/virtio-net.c +27
-0+struct virtio_net_config_with_rss { +/* The config defining mac address (if VIRTIO_NET_F_MAC) */ +__u8 mac[ETH_ALEN ]; +/* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ +__u16 status; +/* +* Maximum number of each of transmit and receive queues; +* see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ. +* Legal values are between 1 and 0x8000 +*/ +__u16 max_virtqueue_pairs; +/* Default maximum transmit unit advice */ +__u16 mtu; +/* +* speed, in units of 1Mb. All values 0 to INT_MAX are legal. +* Any other value stands for unknown. +*/ +__u32 speed; +/* +* 0x00 - half duplex +* 0x01 - full duplex +* Any other value stands for unknown. +*/ +__u8 duplex; +/* maximum size of RSS key */ +__u8 rss_max_key_size; +/* maximum number of indirection table entries */
Quoted 9 lines
hw/net/virtio-net.c line 128
Quoted 6 lines
hw/net/virtio-net.c +6
-0+__le16 rss_max_indirection_table_length; +/* bitmask of supported VIRTIO_NET_RSS_HASH_ types */ +__le32 supported_hash_types; +} __attribute__((packed)); + +#define virtio_net_config virtio_net_config_with_rssDo we have to? Let's just tweak code to do the right thing...
Are we going to update the virtio_net some time?
If yes, IMO makes sense to do less tweaking in the middle of the code. Then, upon update of virtio_net.h - easily remove all these defines that were added in virtio-net.c
Quoted 51 lines
Quoted 32 lines
hw/net/virtio-net.c +31
-0+ +struct virtio_net_hdr_v1_hash { +struct virtio_net_hdr_v1 hdr; +__le32 hash_value; +#define VIRTIO_NET_HASH_REPORT_NONE 0 +#define VIRTIO_NET_HASH_REPORT_IPv4 1 +#define VIRTIO_NET_HASH_REPORT_TCPv4 2 +#define VIRTIO_NET_HASH_REPORT_UDPv4 3 +#define VIRTIO_NET_HASH_REPORT_IPv6 4 +#define VIRTIO_NET_HASH_REPORT_TCPv6 5 +#define VIRTIO_NET_HASH_REPORT_UDPv6 6 +#define VIRTIO_NET_HASH_REPORT_IPv6_EX 7 +#define VIRTIO_NET_HASH_REPORT_TCPv6_EX 8 +#define VIRTIO_NET_HASH_REPORT_UDPv6_EX 9 +__le16 hash_report; +__le16 padding; +}; + +/* +* The command VIRTIO_NET_CTRL_MQ_RSS_CONFIG has the same effect as +* VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET does and additionally configures +* the receive steering to use a hash calculated for incoming packet +* to decide on receive virtqueue to place the packet. The command +* also provides parameters to calculate a hash and receive virtqueue. +*/ +struct virtio_net_rss_config { +__le32 hash_types; +__le16 indirection_table_mask; +__le16 unclassified_queue; +__le16 indirection_table[1 /* + indirection_table_mask */ ]; +__le16 max_tx_vq;hw/net/virtio-net.c
Quoted 10 lines
hw/net/virtio-net.c +9
-0+__u8 hash_key_length; + __u8 hash_key_data[/* hash_key_length */]; +}; + +#define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1 +#define VIRTIO_NET_CTRL_MQ_HASH_CONFIG 2 + +#endif +/* Purge coalesced packets timer interval, This value affects the performance
hw/net/virtio-net.c line 169
Quoted 1 line
hw/net/virtio-net.c +0
-0a lot, and should be tuned carefully, '300000'(300us) is therecommended
hw/net/virtio-net.c line 170
Quoted 1 line
hw/net/virtio-net.c +0
-0value to pass the WHQL test, '50000' can gain 2x netperf throughputwith
Quoted 2 lines
--
2.17.1
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 79 lines · Yuri Benditovich
On Wed, Mar 11, 2020 at 3:47 PM Michael S. Tsirkin <[email protected]> wrote:
On Wed, Mar 11, 2020 at 02:35:13PM +0200, Yuri Benditovich wrote: > Signed-off-by: Yuri Benditovich <[email protected]> > --- > hw/net/virtio-net.c | 95 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 95 insertions(+) > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > index 3627bb1717..9545b0e84f 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -71,6 +71,101 @@ > #define VIRTIO_NET_IP6_ADDR_SIZE 32 /* ipv6 saddr + daddr */ > #define VIRTIO_NET_MAX_IP6_PAYLOAD VIRTIO_NET_MAX_TCP_PAYLOAD > > +/* TODO: remove after virtio-net header update */ > +#if !defined(VIRTIO_NET_RSS_HASH_TYPE_IPv4) > +#define VIRTIO_NET_F_HASH_REPORT 57 /* Supports hash report */ > +#define VIRTIO_NET_F_RSS 60 /* Supports RSS RX steering */ > + > +/* supported/enabled hash types */ > +#define VIRTIO_NET_RSS_HASH_TYPE_IPv4 (1 << 0) > +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv4 (1 << 1) > +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv4 (1 << 2) > +#define VIRTIO_NET_RSS_HASH_TYPE_IPv6 (1 << 3) > +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv6 (1 << 4) > +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv6 (1 << 5) > +#define VIRTIO_NET_RSS_HASH_TYPE_IP_EX (1 << 6) > +#define VIRTIO_NET_RSS_HASH_TYPE_TCP_EX (1 << 7) > +#define VIRTIO_NET_RSS_HASH_TYPE_UDP_EX (1 << 8) > + > +#define __le16 uint16_t > +#define __le32 uint32_t > +#define __u8 uint8_t > +#define __u16 uint16_t > +#define __u32 uint32_t Let's just use uint16_t etc directly please. > +struct virtio_net_config_with_rss { > + /* The config defining mac address (if VIRTIO_NET_F_MAC) */ > + __u8 mac[ETH_ALEN]; > + /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ > + __u16 status; > + /* > + * Maximum number of each of transmit and receive queues; > + * see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ. > + * Legal values are between 1 and 0x8000 > + */ > + __u16 max_virtqueue_pairs; > + /* Default maximum transmit unit advice */ > + __u16 mtu; > + /* > + * speed, in units of 1Mb. All values 0 to INT_MAX are legal. > + * Any other value stands for unknown. > + */ > + __u32 speed; > + /* > + * 0x00 - half duplex > + * 0x01 - full duplex > + * Any other value stands for unknown. > + */ > + __u8 duplex; > + /* maximum size of RSS key */ > + __u8 rss_max_key_size; > + /* maximum number of indirection table entries */ > + __le16 rss_max_indirection_table_length; > + /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */ > + __le32 supported_hash_types; > +} __attribute__((packed)); > + > +#define virtio_net_config virtio_net_config_with_rss Do we have to? Let's just tweak code to do the right thing...
Quoted 4 lines
Are we going to update the
virtio_netsome time?
If yes, IMO makes sense to do less tweaking in the middle of the code. Then, upon update ofvirtio_net.h- easily remove all these defines that were added invirtio-net.c
We'll update it in a month or two. But I'd be reluctant to merge hacks since people tend to copy-paste code ...
Quoted 52 lines
Quoted 42 lines
hw/net/virtio-net.c +40
-0+ +struct virtio_net_hdr_v1_hash { + struct virtio_net_hdr_v1 hdr; + __le32 hash_value; +#define VIRTIO_NET_HASH_REPORT_NONE 0 +#define VIRTIO_NET_HASH_REPORT_IPv4 1 +#define VIRTIO_NET_HASH_REPORT_TCPv4 2 +#define VIRTIO_NET_HASH_REPORT_UDPv4 3 +#define VIRTIO_NET_HASH_REPORT_IPv6 4 +#define VIRTIO_NET_HASH_REPORT_TCPv6 5 +#define VIRTIO_NET_HASH_REPORT_UDPv6 6 +#define VIRTIO_NET_HASH_REPORT_IPv6_EX 7 +#define VIRTIO_NET_HASH_REPORT_TCPv6_EX 8 +#define VIRTIO_NET_HASH_REPORT_UDPv6_EX 9 + __le16 hash_report; + __le16 padding; +}; + +/* +* The command VIRTIO_NET_CTRL_MQ_RSS_CONFIG has the same effect as +* VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET does and additionally configures +* the receive steering to use a hash calculated for incoming packet +* to decide on receive virtqueue to place the packet. The command +* also provides parameters to calculate a hash and receive virtqueue. +*/ +struct virtio_net_rss_config { + __le32 hash_types; + __le16 indirection_table_mask; + __le16 unclassified_queue; + __le16 indirection_table[1/* + indirection_table_mask */]; + __le16 max_tx_vq; + __u8 hash_key_length; + __u8 hash_key_data[/* hash_key_length */]; +}; + +#define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1 +#define VIRTIO_NET_CTRL_MQ_HASH_CONFIG 2 + +#endif +Quoted 1 line
/* Purge coalesced packets timer interval, This value affects the
performance
> a lot, and should be tuned carefully, '300000'(300us) is the recommended
> value to pass the WHQL test, '50000' can gain 2x netperf throughput with
> --
> 2.17.1
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 84 lines · Michael S. Tsirkin
Quoted 3 lines · Yuri Benditovich
On Wed, Mar 11, 2020 at 3:47 PM Michael S. Tsirkin <[email protected]>
Quoted 5 lines · wrote:
On Wed, Mar 11, 2020 at 02:35:13PM +0200, Yuri Benditovich wrote: > Signed-off-by: Yuri Benditovich <[email protected]> > --- > hw/net/virtio-net.c | 95+++++++++++++++++++++++++++++++++++++++++++++
Quoted 8 lines
hw/net/virtio-net.c line 71
Quoted 8 lines
1 file changed, 95 insertions(+)hw/net/virtio-net.c +0
-0@@ -71,6 +71,101 @@#define VIRTIO_NET_IP6_ADDR_SIZE 32/* ipv6 saddr + daddr */
Quoted 6 lines
hw/net/virtio-net.c
Quoted 6 lines
hw/net/virtio-net.c +4
-0#define VIRTIO_NET_MAX_IP6_PAYLOAD VIRTIO_NET_MAX_TCP_PAYLOAD +/* TODO: remove after virtio-net header update */ +#if !defined(VIRTIO_NET_RSS_HASH_TYPE_IPv4) +#define VIRTIO_NET_F_HASH_REPORT 57/* Supports hash report */ +#define VIRTIO_NET_F_RSS 60/* Supports RSS RX steering */
Quoted 57 lines
Quoted 7 lines
hw/net/virtio-net.c +7
-0+ +/* supported/enabled hash types */ +#define VIRTIO_NET_RSS_HASH_TYPE_IPv4 (1 << 0) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv4 (1 << 1) +#define VIRTIO_NET_RSS_HASH_TYPE_UDPv4 (1 << 2) +#define VIRTIO_NET_RSS_HASH_TYPE_IPv6 (1 << 3) +#define VIRTIO_NET_RSS_HASH_TYPE_TCPv6 (1 << 4)hw/net/virtio-net.c line 94
Quoted 10 lines
hw/net/virtio-net.c +10
-0+#define VIRTIO_NET_RSS_HASH_TYPE_UDPv6 (1 << 5) +#define VIRTIO_NET_RSS_HASH_TYPE_IP_EX (1 << 6) +#define VIRTIO_NET_RSS_HASH_TYPE_TCP_EX (1 << 7) +#define VIRTIO_NET_RSS_HASH_TYPE_UDP_EX (1 << 8) + +#define __le16 uint16_t +#define __le32 uint32_t +#define __u8 uint8_t +#define __u16 uint16_t +#define __u32 uint32_tLet's just use uint16_t etc directly please. > +struct virtio_net_config_with_rss { > + /* The config defining mac address (if VIRTIO_NET_F_MAC) */ > + __u8 mac[ETH_ALEN]; > + /* See VIRTIO_NET_F_STATUS and VIRTIO_NET_S_* above */ > + __u16 status; > + /* > + * Maximum number of each of transmit and receive queues; > + * see VIRTIO_NET_F_MQ and VIRTIO_NET_CTRL_MQ. > + * Legal values are between 1 and 0x8000 > + */ > + __u16 max_virtqueue_pairs; > + /* Default maximum transmit unit advice */ > + __u16 mtu; > + /* > + * speed, in units of 1Mb. All values 0 to INT_MAX are legal. > + * Any other value stands for unknown. > + */ > + __u32 speed; > + /* > + * 0x00 - half duplex > + * 0x01 - full duplex > + * Any other value stands for unknown. > + */ > + __u8 duplex; > + /* maximum size of RSS key */ > + __u8 rss_max_key_size; > + /* maximum number of indirection table entries */ > + __le16 rss_max_indirection_table_length; > + /* bitmask of supported VIRTIO_NET_RSS_HASH_ types */ > + __le32 supported_hash_types; > +} __attribute__((packed)); > + > +#define virtio_net_config virtio_net_config_with_rss Do we have to? Let's just tweak code to do the right thing...
Quoted 9 lines
Quoted 3 lines
Are we going to update the
virtio_netsome time?
If yes, IMO makes sense to do less tweaking in the middle of the code. Then, upon update ofvirtio_net.h- easily remove all these defines thatwere
Quoted 1 line
added in
virtio-net.cWe'll update it in a month or two. But I'd be reluctant to merge hacks since people tend to copy-paste code ...
I agree that merging hacks is very bad practice.
Which change is more looks like a hack: redefine the struct to its _real_ layout or change the type of the struct in 5 places?
Quoted 60 lines
Quoted 15 lines
Quoted 15 lines
hw/net/virtio-net.c +12
-0+ +struct virtio_net_hdr_v1_hash { +struct virtio_net_hdr_v1 hdr; +__le32 hash_value; +#define VIRTIO_NET_HASH_REPORT_NONE 0 +#define VIRTIO_NET_HASH_REPORT_IPv4 1 +#define VIRTIO_NET_HASH_REPORT_TCPv4 2 +#define VIRTIO_NET_HASH_REPORT_UDPv4 3 +#define VIRTIO_NET_HASH_REPORT_IPv6 4 +#define VIRTIO_NET_HASH_REPORT_TCPv6 5 +#define VIRTIO_NET_HASH_REPORT_UDPv6 6 +#define VIRTIO_NET_HASH_REPORT_IPv6_EX 7Quoted 8 lines
hw/net/virtio-net.c
Quoted 8 lines
hw/net/virtio-net.c +8
-0+#define VIRTIO_NET_HASH_REPORT_TCPv6_EX 8 +#define VIRTIO_NET_HASH_REPORT_UDPv6_EX 9 +__le16 hash_report; +__le16 padding; +}; + +/* +* The command VIRTIO_NET_CTRL_MQ_RSS_CONFIG has the same effect as
Quoted 1 line
hw/net/virtio-net.c line 115
Quoted 1 line
hw/net/virtio-net.c +1
-0+* VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET does and additionally configures
Quoted 1 line
hw/net/virtio-net.c line 116
Quoted 1 line
hw/net/virtio-net.c +1
-0+* the receive steering to use a hash calculated for incoming packet
Quoted 2 lines
hw/net/virtio-net.c line 118
Quoted 2 lines
hw/net/virtio-net.c +2
-0+* to decide on receive virtqueue to place the packet. The command +* also provides parameters to calculate a hash and receive virtqueue.
Quoted 13 lines
Quoted 13 lines
hw/net/virtio-net.c +13
-0+*/ +struct virtio_net_rss_config { +__le32 hash_types; +__le16 indirection_table_mask; +__le16 unclassified_queue; +__le16 indirection_table[1 /* + indirection_table_mask */ ]; +__le16 max_tx_vq; +__u8 hash_key_length; +__u8 hash_key_data[/* hash_key_length */ ]; +}; + +#define VIRTIO_NET_CTRL_MQ_RSS_CONFIG 1 +#define VIRTIO_NET_CTRL_MQ_HASH_CONFIG 2Quoted 8 lines
hw/net/virtio-net.c
Quoted 4 lines
hw/net/virtio-net.c +3
-0+ +#endif +/* Purge coalesced packets timer interval, This value affects the performance
> a lot, and should be tuned carefully, '300000'(300us) is the
recommended
> value to pass the WHQL test, '50000' can gain 2x netperfthroughput
Quoted 5 lines
with > -- > 2.17.1
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 11 lines · Yuri Benditovich
Quoted 8 lines
> +#define
virtio_net_configvirtio_net_config_with_rssDo we have to? Let's just tweak code to do the right thing...
Are we going to update the
virtio_netsome time?
If yes, IMO makes sense to do less tweaking in the middle of the code. Then, upon update ofvirtio_net.h- easily remove all these defines thatwere
> added invirtio-net.c
Quoted 7 lines
We'll update it in a month or two. But I'd be reluctant to merge hacks since people tend to copy-paste code ...
I agree that merging hacks is very bad practice.
Which change is more looks like a hack: redefine the struct to its _real_ layout or change the type of the struct in 5 places?
Anything that would be unacceptable as a permanent solution is a hack. In this case how about
virtio_net_config_rss {
struct virtio_net_config config;
/* RSS things */
}Signature · 1 line
MST
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 23 lines · Michael S. Tsirkin
Quoted 7 lines · Yuri Benditovich
Quoted 7 lines
Quoted 1 line
+#define
virtio_net_configvirtio_net_config_with_rssDo we have to? Let's just tweak code to do the right thing...
Are we going to update the
virtio_netsome time?
If yes, IMO makes sense to do less tweaking in the middle of thecode.
Quoted 1 line
Quoted 1 line
Then, upon update of
virtio_net.h- easily remove all thesedefines that
Quoted 4 lines
were
> added invirtio-net.cWe'll update it in a month or two. But I'd be reluctant to merge
hacks
Quoted 6 lines
since people tend to copy-paste code ...
I agree that merging hacks is very bad practice.
Which change is more looks like a hack: redefine the struct to its _real_ layout or change the type of the struct in 5 places?
Quoted 7 lines
Anything that would be unacceptable as a permanent solution is a hack. In this case how about
virtio_net_config_rss { struct virtio_net_config config; /* RSS things */ }
No problem.
'#define virtio_net_config virtio_net_config_with_rss ' is OK?
Quoted 6 lines
--
MST
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 35 lines · Yuri Benditovich
On Thu, Mar 12, 2020 at 9:21 AM Michael S. Tsirkin <[email protected]> wrote:
On Thu, Mar 12, 2020 at 09:02:38AM +0200, Yuri Benditovich wrote:
> > > +#definevirtio_net_configvirtio_net_config_with_rss> >
> > Do we have to? Let's just tweak code to do the right thing... > >
> >
> > Are we going to update thevirtio_netsome time?
> > If yes, IMO makes sense to do less tweaking in the middle of the code.
> > Then, upon update ofvirtio_net.h- easily remove all these defines that
> were
> > added invirtio-net.c
>
> We'll update it in a month or two. But I'd be reluctant to merge hacks
> since people tend to copy-paste code ...
>
>
> I agree that merging hacks is very bad practice.
> Which change is more looks like a hack: redefine the struct to its _real_ > layout or change the type of the struct in 5 places?Anything that would be unacceptable as a permanent solution is a hack. In this case how about
virtio_net_config_rss{
structvirtio_net_configconfig;
/* RSS things */
}
Quoted 4 lines
No problem.
'#define
virtio_net_configvirtio_net_config_with_rss' is OK?
I don't think it is, macros are supposed to be all upper case.
Quoted 7 lines
--
MSTRe: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 43 lines · Michael S. Tsirkin
Quoted 3 lines · Yuri Benditovich
On Thu, Mar 12, 2020 at 9:21 AM Michael S. Tsirkin <[email protected]>
Quoted 5 lines · wrote:
On Thu, Mar 12, 2020 at 09:02:38AM +0200, Yuri Benditovich wrote:
> > > +#definevirtio_net_configvirtio_net_config_with_rss
> >
> > Do we have to? Let's just tweak code to do the rightthing...
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Are we going to update the
virtio_netsome time? If yes, IMO makes sense to do less tweaking in the middle ofthe
Quoted 2 lines
code.
> > Then, upon update ofvirtio_net.h- easily remove all thesedefines
Quoted 5 lines
that
> were
> > added invirtio-net.c
>
> We'll update it in a month or two. But I'd be reluctant tomerge
Quoted 6 lines
hacks
> since people tend to copy-paste code ...
>
>
> I agree that merging hacks is very bad practice.
> Which change is more looks like a hack: redefine the struct to its_real_
Quoted 3 lines
Quoted 1 line
layout or change the type of the struct in 5 places?
Anything that would be unacceptable as a permanent solution is a
hack.
Quoted 7 lines
In this case how about virtio_net_config_rss { struct virtio_net_config config; /* RSS things */ }
Quoted 7 lines
Quoted 4 lines
No problem.
'#define
virtio_net_configvirtio_net_config_with_rss' is OK?I don't think it is, macros are supposed to be all upper case.
Michael, just tell me please what you want:
You prefer to change everywhere ' virtio_net_config' to 'virtio_net_config_rss' and two month later to change it back? You prefer to change everywhere ' virtio_net_config' to 'VIRTIO_NET_CONFIG' and define it according to the needs? Something other?
Quoted 10 lines
Quoted 8 lines
-- MST
Re: [PATCH v3 1/6] virtio-net: introduce RSS and hash report features
Quoted 3 lines · Yuri Benditovich
Michael, just tell me please what you want:
You prefer to change everywhere 'virtio_net_config' to 'virtio_net_config_rss' and two month later to change it back?
Exactly.
Quoted 2 lines
You prefer to change everywhere ' virtio_net_config' to '
VIRTIO_NET_CONFIG' and define it according to the needs?
I can live with this too, if you prefer this.
Quoted 1 line
Something other?
PATCH v3 2/6 virtio-net: implement RSS configuration command
In reply to Yuri BenditovichOptionally report RSS feature.
Handle RSS configuration command and keep RSS parameters in virtio-net device context.
--- hw/net/trace-events | 3 + hw/net/virtio-net.c | 158 +++++++++++++++++++++++++++++++-- include/hw/virtio/virtio-net.h | 16 ++++ 3 files changed, 168 insertions(+), 9 deletions(-)
hw/net/trace-events +3 -0
@@ -371,6 +371,9 @@ virtio_net_announce_notify(void) "" virtio_net_announce_timer(int round) "%d" virtio_net_handle_announce(int round) "%d" virtio_net_post_load_device(void) +virtio_net_rss_disable(void) +virtio_net_rss_error(const char *msg, uint32_t value) "%s, value 0x%08x" +virtio_net_rss_enable(uint32_t p1, uint16_t p2, uint8_t p3) "hashes 0x%x, table of %d, key of %d" # tulip.c tulip_reg_write(uint64_t addr, const char *name, int size, uint64_t val) "addr 0x%02"PRIx64" (%s) size %d value 0x%08"PRIx64
hw/net/virtio-net.c +149 -9
210 lines not on this page · raw message
include/hw/virtio/virtio-net.h +16 -0
@@ -126,6 +126,18 @@ typedef struct VirtioNetRscChain {/* Maximum packet size we can receive from tap device: header + 64k */ #define VIRTIO_NET_MAX_BUFSIZE (sizeof(struct virtio_net_hdr) + (64 * KiB)) +#define VIRTIO_NET_RSS_MAX_KEY_SIZE 40 +#define VIRTIO_NET_RSS_MAX_TABLE_LEN 128 + +typedef struct VirtioNetRssData { +bool enabled; +uint32_t hash_types; +uint8_t key[VIRTIO_NET_RSS_MAX_KEY_SIZE ]; +uint16_t indirections[VIRTIO_NET_RSS_MAX_TABLE_LEN ]; +uint16_t indirections_len; +uint16_t default_queue; +}VirtioNetRssData ; + typedef struct VirtIONetQueue { VirtQueue *rx_vq; VirtQueue *tx_vq;
@@ -199,6 +211,10 @@ struct VirtIONet {bool failover;DeviceListener primary_listener;Notifier migration_state; +union { +VirtioNetRssData rss_data; +uint8_t rss_data_migration[sizeof (VirtioNetRssData)]; + }; }; void virtio_net_set_netclient_name(VirtIONet *n, const char *name,
Signature · 1 line
2.17.1
PATCH v3 3/6 virtio-net: implement RX RSS processing
In reply to Yuri BenditovichIf VIRTIO_NET_F_RSS negotiated and RSS is enabled, process incoming packets, calculate packet's hash and place the packet into respective RX virtqueue.
--- hw/net/virtio-net.c | 88 +++++++++++++++++++++++++++++++++- include/hw/virtio/virtio-net.h | 1 + 2 files changed, 87 insertions(+), 2 deletions(-)
hw/net/virtio-net.c +86 -2
@@ -42,6 +42,7 @@#include "trace.h" #include "monitor/qdev.h" #include "hw/pci/pci.h" +#include "net_rx_pkt.h" #define VIRTIO_NET_VM_VERSION 11
@@ -1620,8 +1621,80 @@ static int receive_filter(VirtIONet *n, const uint8_t *buf, int size)return 0 ; } +static uint8_t virtio_net_get_hash_type (bool isip4, +bool isip6, +bool isudp, +bool istcp, +uint32_t types) +{ +if (isip4) { +if (istcp && (types & VIRTIO_NET_RSS_HASH_TYPE_TCPv4)) { +return NetPktRssIpV4Tcp; + } +if (isudp && (types & VIRTIO_NET_RSS_HASH_TYPE_UDPv4)) { +return NetPktRssIpV4Udp; + } +if (types & VIRTIO_NET_RSS_HASH_TYPE_IPv4) { +return NetPktRssIpV4; + } + }else if (isip6) { +uint32_t mask =VIRTIO_NET_RSS_HASH_TYPE_TCP_EX | + VIRTIO_NET_RSS_HASH_TYPE_TCPv6; + +if (istcp && (types & mask)) { +return (types &VIRTIO_NET_RSS_HASH_TYPE_TCP_EX ) ? + NetPktRssIpV6TcpEx : NetPktRssIpV6Tcp; + } + mask =VIRTIO_NET_RSS_HASH_TYPE_UDP_EX | VIRTIO_NET_RSS_HASH_TYPE_UDPv6; +if (isudp && (types & mask)) { +return (types &VIRTIO_NET_RSS_HASH_TYPE_UDP_EX ) ? + NetPktRssIpV6UdpEx : NetPktRssIpV6Udp; + } + mask =VIRTIO_NET_RSS_HASH_TYPE_IP_EX | VIRTIO_NET_RSS_HASH_TYPE_IPv6; +if (types & mask) { +return (types &VIRTIO_NET_RSS_HASH_TYPE_IP_EX ) ? + NetPktRssIpV6Ex : NetPktRssIpV6; + } + } +return 0xff ; +} + +static int virtio_net_process_rss (NetClientState *nc,const uint8_t *buf, +size_t size) +{ +VirtIONet *n =qemu_get_nic_opaque (nc); +unsigned int index = nc->queue_index, new_index; +struct NetRxPkt *pkt = n->rx_pkt; +uint8_t net_hash_type; +uint32_t hash; +bool isip4, isip6, isudp, istcp; + +net_rx_pkt_set_protocols (pkt, buf + n->host_hdr_len, + size - n->host_hdr_len); +net_rx_pkt_get_protocols (pkt, &isip4, &isip6, &isudp, &istcp); +if (isip4 && (net_rx_pkt_get_ip4_info (pkt)->fragment)) { + istcp = isudp = false; + } +if (isip6 && (net_rx_pkt_get_ip6_info (pkt)->fragment)) { + istcp = isudp = false; + } + net_hash_type =virtio_net_get_hash_type (isip4, isip6, isudp, istcp, + n->rss_data.hash_types); +if (net_hash_type > NetPktRssIpV6UdpEx) { +return n->rss_data.default_queue; + } + + hash =net_rx_pkt_calc_rss_hash (pkt, net_hash_type, n->rss_data.key); + new_index = hash & (n->rss_data.indirections_len -1 ); + new_index = n->rss_data.indirections[new_index]; +if (index == new_index) { +return -1 ; + } +return new_index; +} +static ssize_t virtio_net_receive_rcu (NetClientState *nc,const uint8_t *buf, -size_t size) +size_t size,bool no_rss) {VirtIONet *n =qemu_get_nic_opaque (nc);VirtIONetQueue *q =virtio_net_get_subqueue (nc);
@@ -1635,6 +1708,14 @@ static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf,return -1 ; } +if (!no_rss && n->rss_data.enabled) { +int index =virtio_net_process_rss (nc, buf, size); +if (index >=0 ) { +NetClientState *nc2 =qemu_get_subqueue (n->nic, index); +return virtio_net_receive_rcu (nc2, buf, size, true); + } + } +/* hdr_len refers to the header we supply to the guest */ if (!virtio_net_has_buffers (q, size + n->guest_hdr_len - n->host_hdr_len)) {return 0 ;
@@ -1729,7 +1810,7 @@ static ssize_t virtio_net_do_receive(NetClientState *nc, const uint8_t *buf, {RCU_READ_LOCK_GUARD (); -return virtio_net_receive_rcu (nc, buf, size); +return virtio_net_receive_rcu (nc, buf, size, false); } static void virtio_net_rsc_extract_unit4(VirtioNetRscChain *chain,
@@ -3305,6 +3386,8 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp)QTAILQ_INIT (&n->rsc_chains); n->qdev = dev; + +net_rx_pkt_init (&n->rx_pkt, false); }static void virtio_net_device_unrealize (DeviceState *dev,Error **errp)
@@ -3341,6 +3424,7 @@ static void virtio_net_device_unrealize(DeviceState *dev, Error **errp)g_free (n->vqs);qemu_del_nic (n->nic);virtio_net_rsc_cleanup (n); +net_rx_pkt_uninit (n->rx_pkt);virtio_cleanup (vdev); }
include/hw/virtio/virtio-net.h +1 -0
@@ -215,6 +215,7 @@ struct VirtIONet {VirtioNetRssData rss_data;uint8_t rss_data_migration[sizeof (VirtioNetRssData)]; }; +struct NetRxPkt *rx_pkt; }; void virtio_net_set_netclient_name(VirtIONet *n, const char *name,
Signature · 1 line
2.17.1
PATCH v3 4/6 virtio-net: reference implementation of hash report
In reply to Yuri BenditovichSuggest VIRTIO_NET_F_HASH_REPORT if specified in device parameters.
If the VIRTIO_NET_F_HASH_REPORT is set,
the device extends configuration space. If the feature is negotiated, the packet layout is extended to accomodate the hash information. In this case deliver packet's hash value and report type in virtio header extension.
Use for configuration the same procedure as already used for RSS. We add two fields in rss_data that controls what the device does with the calculated hash if rss_data.enabled is set. If field 'populate' is set the hash is set in the packet, if field 'redirect' is set the hash is used to decide the queue to place the packet to.
--- hw/net/virtio-net.c | 98 ++++++++++++++++++++++++++++------ include/hw/virtio/virtio-net.h | 2 + 2 files changed, 83 insertions(+), 17 deletions(-)
hw/net/virtio-net.c +81 -17
@@ -214,7 +214,7 @@ static VirtIOFeature feature_sizes[] = { .end = endof(struct virtio_net_config, mtu)}, {.flags = 1ULL << VIRTIO_NET_F_SPEED_DUPLEX, .end = endof(struct virtio_net_config, duplex)}, - {.flags = 1ULL << VIRTIO_NET_F_RSS, + {.flags = (1ULL << VIRTIO_NET_F_RSS) | (1ULL << VIRTIO_NET_F_HASH_REPORT), .end = endof(struct virtio_net_config, supported_hash_types)}, {} };
@@ -248,7 +248,8 @@ static void virtio_net_get_config(VirtIODevice *vdev, uint8_t *config) netcfg.duplex = n->net_conf.duplex; netcfg.rss_max_key_size =VIRTIO_NET_RSS_MAX_KEY_SIZE ;virtio_stw_p (vdev, &netcfg.rss_max_indirection_table_length, -VIRTIO_NET_RSS_MAX_TABLE_LEN ); +virtio_host_has_feature (vdev,VIRTIO_NET_F_RSS ) ? +VIRTIO_NET_RSS_MAX_TABLE_LEN :1 );virtio_stl_p (vdev, &netcfg.supported_hash_types,VIRTIO_NET_RSS_SUPPORTED_HASHES );memcpy (config, &netcfg, n->config_size);
@@ -674,7 +675,7 @@ static int peer_has_ufo(VirtIONet *n) }static void virtio_net_set_mrg_rx_bufs (VirtIONet *n,int mergeable_rx_bufs, -int version_1) +int version_1,int hash_report) {int i;NetClientState *nc;
@@ -682,7 +683,10 @@ static void virtio_net_set_mrg_rx_bufs(VirtIONet *n, int mergeable_rx_bufs, n->mergeable_rx_bufs = mergeable_rx_bufs;if (version_1) { - n->guest_hdr_len =sizeof (struct virtio_net_hdr_mrg_rxbuf ); + n->guest_hdr_len = hash_report ? +sizeof (struct virtio_net_hdr_v1_hash ) : +sizeof (struct virtio_net_hdr_mrg_rxbuf ); + n->rss_data.populate_hash = true; }else { n->guest_hdr_len = n->mergeable_rx_bufs ? sizeof(struct virtio_net_hdr_mrg_rxbuf) :
@@ -803,6 +807,8 @@ static uint64_t virtio_net_get_features(VirtIODevice *vdev, uint64_t features,virtio_clear_feature (&features,VIRTIO_NET_F_GUEST_TSO4 );virtio_clear_feature (&features,VIRTIO_NET_F_GUEST_TSO6 );virtio_clear_feature (&features,VIRTIO_NET_F_GUEST_ECN ); + +virtio_clear_feature (&features,VIRTIO_NET_F_HASH_REPORT ); }if (!peer_has_vnet_hdr (n) || !peer_has_ufo (n)) {
@@ -815,6 +821,7 @@ static uint64_t virtio_net_get_features(VirtIODevice *vdev, uint64_t features, }virtio_clear_feature (&features,VIRTIO_NET_F_RSS ); +virtio_clear_feature (&features,VIRTIO_NET_F_HASH_REPORT ); features =vhost_net_get_features (get_vhost_net (nc->peer), features); vdev->backend_features = features;
@@ -981,12 +988,15 @@ static void virtio_net_set_features(VirtIODevice *vdev, uint64_t features)virtio_has_feature (features,VIRTIO_NET_F_MRG_RXBUF ),virtio_has_feature (features, - VIRTIO_F_VERSION_1)); +VIRTIO_F_VERSION_1 ), +virtio_has_feature (features, + VIRTIO_NET_F_HASH_REPORT)); n->rsc4_enabled =virtio_has_feature (features,VIRTIO_NET_F_RSC_EXT ) &&virtio_has_feature (features,VIRTIO_NET_F_GUEST_TSO4 ); n->rsc6_enabled =virtio_has_feature (features,VIRTIO_NET_F_RSC_EXT ) &&virtio_has_feature (features,VIRTIO_NET_F_GUEST_TSO6 ); + n->rss_data.redirect =virtio_has_feature (features,VIRTIO_NET_F_RSS );if (n->has_vnet_hdr) { n->curr_guest_offloads =
@@ -1260,7 +1270,9 @@ static void virtio_net_disable_rss(VirtIONet *n) }static uint16_t virtio_net_handle_rss (VirtIONet *n, -struct iovec *iov,unsigned int iov_cnt) +struct iovec *iov, +unsigned int iov_cnt, +bool do_rss) {VirtIODevice *vdev =VIRTIO_DEVICE (n);struct virtio_net_rss_config cfg;
@@ -1273,10 +1285,14 @@ static uint16_t virtio_net_handle_rss(VirtIONet *n,const char *err_msg ="" ;uint32_t err_value =0 ; -if (!virtio_vdev_has_feature (vdev,VIRTIO_NET_F_RSS )) { +if (do_rss && !virtio_vdev_has_feature (vdev,VIRTIO_NET_F_RSS )) { err_msg ="RSS is not negotiated" ; goto error; } +if (!do_rss && !virtio_vdev_has_feature (vdev,VIRTIO_NET_F_HASH_REPORT )) { + err_msg ="Hash report is not negotiated" ; + goto error; + } size_get = offsetof(struct virtio_net_rss_config , indirection_table); s =iov_to_buf (iov, iov_cnt, offset, &cfg, size_get);if (s != size_get) {
@@ -1288,6 +1304,9 @@ static uint16_t virtio_net_handle_rss(VirtIONet *n, n->rss_data.indirections_len =virtio_lduw_p (vdev, &cfg.indirection_table_mask); n->rss_data.indirections_len++; +if (!do_rss) { + n->rss_data.indirections_len =1 ; + }if (!is_power_of_2 (n->rss_data.indirections_len)) { err_msg ="Invalid size of indirection table" ; err_value = n->rss_data.indirections_len;
@@ -1298,8 +1317,8 @@ static uint16_t virtio_net_handle_rss(VirtIONet *n, err_value = n->rss_data.indirections_len; goto error; } - n->rss_data.default_queue = -virtio_lduw_p (vdev, &cfg.unclassified_queue); + n->rss_data.default_queue = do_rss ? +virtio_lduw_p (vdev, &cfg.unclassified_queue) :0 ;if (n->rss_data.default_queue >= n->max_queues) { err_msg ="Invalid default queue" ; err_value = n->rss_data.default_queue;
@@ -1315,7 +1334,7 @@ static uint16_t virtio_net_handle_rss(VirtIONet *n, }for (i =0 ; i < n->rss_data.indirections_len; ++i) {uint16_t val = n->rss_data.indirections[i]; - n->rss_data.indirections[i] =virtio_lduw_p (vdev, &val); + n->rss_data.indirections[i] = do_rss ?virtio_lduw_p (vdev, &val) :0 ; } offset += size_get; size_get =sizeof (temp);
@@ -1325,7 +1344,7 @@ static uint16_t virtio_net_handle_rss(VirtIONet *n, err_value = (uint32_t )s; goto error; } - queues =virtio_lduw_p (vdev, &temp.us); + queues = do_rss ?virtio_lduw_p (vdev, &temp.us) : n->curr_queues;if (queues ==0 || queues > n->max_queues) { err_msg ="Invalid number of queues" ; err_value = queues;
@@ -1371,8 +1390,12 @@ static int virtio_net_handle_mq(VirtIONet *n, uint8_t cmd,uint16_t queues;virtio_net_disable_rss (n); +if (cmd ==VIRTIO_NET_CTRL_MQ_HASH_CONFIG ) { + queues =virtio_net_handle_rss (n, iov, iov_cnt, false); +return queues ?VIRTIO_NET_OK :VIRTIO_NET_ERR ; + }if (cmd ==VIRTIO_NET_CTRL_MQ_RSS_CONFIG ) { - queues =virtio_net_handle_rss (n, iov, iov_cnt); + queues =virtio_net_handle_rss (n, iov, iov_cnt, true); }else if (cmd ==VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET ) {struct virtio_net_ctrl_mq mq;size_t s;
@@ -1659,6 +1682,14 @@ static uint8_t virtio_net_get_hash_type(bool isip4,return 0xff ; } +static void virtio_set_packet_hash (const uint8_t *buf,uint8_t report, +uint32_t hash) +{ +struct virtio_net_hdr_v1_hash *hdr = (void *)buf; + hdr->hash_value = hash; + hdr->hash_report = report; +} +static int virtio_net_process_rss (NetClientState *nc,const uint8_t *buf,size_t size) {
@@ -1668,6 +1699,17 @@ static int virtio_net_process_rss(NetClientState *nc, const uint8_t *buf,uint8_t net_hash_type;uint32_t hash;bool isip4, isip6, isudp, istcp; +static const uint8_t reports[NetPktRssIpV6UdpEx +1 ] = { + VIRTIO_NET_HASH_REPORT_IPv4, + VIRTIO_NET_HASH_REPORT_TCPv4, + VIRTIO_NET_HASH_REPORT_TCPv6, + VIRTIO_NET_HASH_REPORT_IPv6, + VIRTIO_NET_HASH_REPORT_IPv6_EX, + VIRTIO_NET_HASH_REPORT_TCPv6_EX, + VIRTIO_NET_HASH_REPORT_UDPv4, + VIRTIO_NET_HASH_REPORT_UDPv6, + VIRTIO_NET_HASH_REPORT_UDPv6_EX + };net_rx_pkt_set_protocols (pkt, buf + n->host_hdr_len, size - n->host_hdr_len);
@@ -1681,12 +1723,25 @@ static int virtio_net_process_rss(NetClientState *nc, const uint8_t *buf, net_hash_type =virtio_net_get_hash_type (isip4, isip6, isudp, istcp, n->rss_data.hash_types);if (net_hash_type > NetPktRssIpV6UdpEx) { -return n->rss_data.default_queue; +if (n->rss_data.populate_hash) { +virtio_set_packet_hash (buf,VIRTIO_NET_HASH_REPORT_NONE ,0 ); + } +return n->rss_data.redirect ? n->rss_data.default_queue :-1 ; } hash =net_rx_pkt_calc_rss_hash (pkt, net_hash_type, n->rss_data.key); - new_index = hash & (n->rss_data.indirections_len -1 ); - new_index = n->rss_data.indirections[new_index]; + +if (n->rss_data.populate_hash) { +virtio_set_packet_hash (buf, reports[net_hash_type], hash); + } + +if (n->rss_data.redirect) { + new_index = hash & (n->rss_data.indirections_len -1 ); + new_index = n->rss_data.indirections[new_index]; + }else { + new_index = index; + } +if (index == new_index) {return -1 ; }
@@ -1766,6 +1821,11 @@ static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, }receive_header (n, sg, elem->in_num, buf, size); +if (n->rss_data.populate_hash) { + offset =sizeof (mhdr); +iov_from_buf (sg, elem->in_num, offset, + buf + offset, n->host_hdr_len -sizeof (mhdr)); + } offset = n->host_hdr_len; total += n->guest_hdr_len; guest_offset = n->guest_hdr_len;
@@ -2758,7 +2818,9 @@ static int virtio_net_post_load_device(void *opaque, int version_id)trace_virtio_net_post_load_device ();virtio_net_set_mrg_rx_bufs (n, n->mergeable_rx_bufs,virtio_vdev_has_feature (vdev, -VIRTIO_F_VERSION_1 )); +VIRTIO_F_VERSION_1 ), +virtio_vdev_has_feature (vdev, +VIRTIO_NET_F_HASH_REPORT ));/* MAC_TABLE_ENTRIES may be different from the saved image */ if (n->mac_table.in_use >MAC_TABLE_ENTRIES ) {
@@ -3374,7 +3436,7 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp) n->vqs[0 ].tx_waiting =0 ; n->tx_burst = n->net_conf.txburst; -virtio_net_set_mrg_rx_bufs (n,0 ,0 ); +virtio_net_set_mrg_rx_bufs (n,0 ,0 ,0 ); n->promisc =1 ;/* for compatibility */ n->mac_table.macs =g_malloc0 (MAC_TABLE_ENTRIES *ETH_ALEN );
@@ -3528,6 +3590,8 @@ static Property virtio_net_properties[] = {DEFINE_PROP_BIT64 ("mq" , VirtIONet, host_features,VIRTIO_NET_F_MQ , false),DEFINE_PROP_BIT64 ("rss" , VirtIONet, host_features,VIRTIO_NET_F_RSS , false), +DEFINE_PROP_BIT64 ("hash" , VirtIONet, host_features, +VIRTIO_NET_F_HASH_REPORT , false),DEFINE_PROP_BIT64 ("guest_rsc_ext" , VirtIONet, host_features,VIRTIO_NET_F_RSC_EXT , false), DEFINE_PROP_UINT32("rsc_interval", VirtIONet, rsc_timeout,
include/hw/virtio/virtio-net.h +2 -0
@@ -131,6 +131,8 @@ typedef struct VirtioNetRscChain { typedef struct VirtioNetRssData { bool enabled; + bool redirect; + bool populate_hash; uint32_t hash_types; uint8_t key[VIRTIO_NET_RSS_MAX_KEY_SIZE]; uint16_t indirections[VIRTIO_NET_RSS_MAX_TABLE_LEN];
Signature · 1 line
2.17.1
PATCH v3 5/6 virtio-net: add migration support for RSS and hast report
In reply to Yuri BenditovichSave and restore RSS/hash report configuration.
--- hw/net/virtio-net.c | 9 +++++++++ 1 file changed, 9 insertions(+)
hw/net/virtio-net.c +9 -0
@@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void *opaque, int version_id) } } +if (n->rss_data.enabled) { +trace_virtio_net_rss_enable (n->rss_data.hash_types, + n->rss_data.indirections_len, +sizeof (n->rss_data.key)); + }else { +trace_virtio_net_rss_disable (); + }return 0 ; }
@@ -3094,6 +3101,8 @@ static const VMStateDescription vmstate_virtio_net_device = { vmstate_virtio_net_tx_waiting),VMSTATE_UINT64_TEST (curr_guest_offloads ,VirtIONet ,has_ctrl_guest_offloads ), +VMSTATE_UINT8_ARRAY (rss_data_migration ,VirtIONet , + sizeof(VirtioNetRssData)),VMSTATE_END_OF_LIST () }, };
Signature · 1 line
2.17.1
Re: [PATCH v3 5/6] virtio-net: add migration support for RSS and hast report
Quoted 26 lines · Yuri Benditovich
Save and restore RSS/hash report configuration.
Signed-off-by Yuri Benditovich <[email protected]>--- hw/net/virtio-net.c | 9 +++++++++ 1 file changed, 9 insertions(+)hw/net/virtio-net.c +7
-0@@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void *opaque, int version_id) } } +if (n->rss_data.enabled) { +trace_virtio_net_rss_enable (n->rss_data.hash_types, + n->rss_data.indirections_len, +sizeof (n->rss_data.key)); + }else { +trace_virtio_net_rss_disable (); + }return 0 ; }
hw/net/virtio-net.c static const VMStateDescription vmstate_virtio_net_device = { · line 3107
Quoted 7 lines
hw/net/virtio-net.c +2
-0@@ -3094,6 +3101,8 @@ static const VMStateDescription vmstate_virtio_net_device = { vmstate_virtio_net_tx_waiting),VMSTATE_UINT64_TEST (curr_guest_offloads, VirtIONet, has_ctrl_guest_offloads), +VMSTATE_UINT8_ARRAY (rss_data_migration, VirtIONet, +sizeof (VirtioNetRssData)),VMSTATE_END_OF_LIST () },
I think we should migrate the length too. Avoid arbitrary limits. Yes this means we should allocate the indirection arrays on the fly. But that's probably a good idea anyway.
Quoted 3 lines
hw/net/virtio-net.c +0
-0};Signature · 1 line
2.17.1
Re: [PATCH v3 5/6] virtio-net: add migration support for RSS and hast report
Quoted 38 lines · Michael S. Tsirkin
hw/net/virtio-net.c static int virtio_net_post_load_device(void
Quoted 12 lines · Yuri Benditovich
Save and restore RSS/hash report configuration.
Signed-off-by Yuri Benditovich <[email protected]>--- hw/net/virtio-net.c | 9 +++++++++ 1 file changed, 9 insertions(+)hw/net/virtio-net.c +0
-0@@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void*opaque, int
version_id)hw/net/virtio-net.c static const VMStateDescription
Quoted 14 lines
hw/net/virtio-net.c +7
-0} } +if (n->rss_data.enabled) { +trace_virtio_net_rss_enable (n->rss_data.hash_types, + n->rss_data.indirections_len, +sizeof (n->rss_data.key)); + }else { +trace_virtio_net_rss_disable (); + }return 0 ; }@@ -3094,6 +3101,8 @@ static const VMStateDescription
vmstate_virtio_net_device= {hw/net/virtio-net.c static const VMStateDescription vmstate_virtio_net_device = { · line 3107
Quoted 7 lines
hw/net/virtio-net.c +2
-0vmstate_virtio_net_tx_waiting),VMSTATE_UINT64_TEST (curr_guest_offloads, VirtIONet, has_ctrl_guest_offloads), +VMSTATE_UINT8_ARRAY (rss_data_migration, VirtIONet, +sizeof (VirtioNetRssData)),VMSTATE_END_OF_LIST () },
Quoted 2 lines
I think we should migrate the length too. Avoid arbitrary limits.
The length of what? The structure is fixed-length and the intention is just to keep/restore it.
The length of indirection table and the table itself are part of the structure.
Quoted 8 lines
Yes this means we should allocate the indirection arrays on the fly. But that's probably a good idea anyway.
Quoted 3 lines
hw/net/virtio-net.c +0
-1}; --2.17.1
Re: [PATCH v3 5/6] virtio-net: add migration support for RSS and hast report
Quoted 45 lines · Yuri Benditovich
On Wed, Mar 11, 2020 at 3:48 PM Michael S. Tsirkin <[email protected]> wrote:
On Wed, Mar 11, 2020 at 02:35:17PM +0200, Yuri Benditovich wrote: > Save and restore RSS/hash report configuration. > > Signed-off-by: Yuri Benditovich <[email protected]> > --- > hw/net/virtio-net.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > index 7b6a929e8c..c8d97d45cd 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void *opaque, int version_id) > } > } > > + if (n->rss_data.enabled) { > + trace_virtio_net_rss_enable(n->rss_data.hash_types, > + n->rss_data.indirections_len, > + sizeof(n->rss_data.key)); > + } else { > + trace_virtio_net_rss_disable(); > + } > return 0; > } > > @@ -3094,6 +3101,8 @@ static const VMStateDescription vmstate_virtio_net_device = { > vmstate_virtio_net_tx_waiting), > VMSTATE_UINT64_TEST(curr_guest_offloads, VirtIONet, > has_ctrl_guest_offloads), > + VMSTATE_UINT8_ARRAY(rss_data_migration, VirtIONet, > + sizeof(VirtioNetRssData)), > VMSTATE_END_OF_LIST() > }, I think we should migrate the length too. Avoid arbitrary limits.
Quoted 1 line
The length of what?
Of the tables.
Quoted 3 lines
The structure is fixed-length and the intention is just to keep/restore it.
The length of indirection table and the table itself are part of the structure.
And that's a problem, because
1. we are wasting memory for a rarely used feature
2. if we want to make the table bigger, we'll need to break migration compatibility
Just allocate these dynamically as needed, and migrate length.
Quoted 9 lines
Yes this means we should allocate the indirection arrays on the fly.
But that's probably a good idea anyway.
> };
> --
> 2.17.1Re: [PATCH v3 5/6] virtio-net: add migration support for RSS and hast report
Quoted 56 lines · Michael S. Tsirkin
Quoted 3 lines · Yuri Benditovich
On Wed, Mar 11, 2020 at 3:48 PM Michael S. Tsirkin <[email protected]>
Quoted 42 lines · wrote:
On Wed, Mar 11, 2020 at 02:35:17PM +0200, Yuri Benditovich wrote: > Save and restore RSS/hash report configuration. > > Signed-off-by: Yuri Benditovich <[email protected]> > --- > hw/net/virtio-net.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > index 7b6a929e8c..c8d97d45cd 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void *opaque, int version_id) > } > } > > + if (n->rss_data.enabled) { > + trace_virtio_net_rss_enable(n->rss_data.hash_types, > + n->rss_data.indirections_len, > + sizeof(n->rss_data.key)); > + } else { > + trace_virtio_net_rss_disable(); > + } > return 0; > } > > @@ -3094,6 +3101,8 @@ static const VMStateDescription vmstate_virtio_net_device = { > vmstate_virtio_net_tx_waiting), > VMSTATE_UINT64_TEST(curr_guest_offloads, VirtIONet, > has_ctrl_guest_offloads), > + VMSTATE_UINT8_ARRAY(rss_data_migration, VirtIONet, > + sizeof(VirtioNetRssData)), > VMSTATE_END_OF_LIST() > }, I think we should migrate the length too. Avoid arbitrary limits.Quoted 1 line
The length of what?
Of the tables.
Quoted 3 lines
The structure is fixed-length and the intention is just to keep/restore it.
The length of indirection table and the table itself are part of thestructure.
Quoted 7 lines
And that's a problem, because
1. we are wasting memory for a rarely used feature
2. if we want to make the table bigger, we'll need to break migration compatibilityJust allocate these dynamically as needed, and migrate length.
Unfortunately, this does not make things much better.
The maximum table size is 128, i.e we have persistent allocation of 256 bytes.
1. Addition of the code to make the allocation dynamic and migrate it will eat most of this.
2. If we decide to change the maximum size if future, we anyway create incompatibility. The driver asks what is maximum indirection table size at the initialization time and the OS provides a table according to this. If we migrate between two different implementations we find ourselves with queue mask that is not compatible with maximum size. I'd rather add the comment "do not change these numbers".
3. Size of key for Toeplitz is always 40
Please confirm you want to make it dynamic anyway
Quoted 13 lines
Quoted 11 lines
Yes this means we should allocate the indirection arrays on the fly. But that's probably a good idea anyway. > }; > -- > 2.17.1
Re: [PATCH v3 5/6] virtio-net: add migration support for RSS and hast report
Quoted 68 lines · Yuri Benditovich
On Wed, Mar 11, 2020 at 10:21 PM Michael S. Tsirkin <[email protected]> wrote:
On Wed, Mar 11, 2020 at 04:00:44PM +0200, Yuri Benditovich wrote: > > > On Wed, Mar 11, 2020 at 3:48 PM Michael S. Tsirkin <[email protected]> wrote: > > On Wed, Mar 11, 2020 at 02:35:17PM +0200, Yuri Benditovich wrote: > > Save and restore RSS/hash report configuration. > > > > Signed-off-by: Yuri Benditovich <[email protected]> > > --- > > hw/net/virtio-net.c | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > > index 7b6a929e8c..c8d97d45cd 100644 > > --- a/hw/net/virtio-net.c > > +++ b/hw/net/virtio-net.c > > @@ -2869,6 +2869,13 @@ static int virtio_net_post_load_device(void > *opaque, int version_id) > > } > > } > > > > + if (n->rss_data.enabled) { > > + trace_virtio_net_rss_enable(n->rss_data.hash_types, > > + n->rss_data.indirections_len, > > + sizeof(n->rss_data.key)); > > + } else { > > + trace_virtio_net_rss_disable(); > > + } > > return 0; > > } > > > > @@ -3094,6 +3101,8 @@ static const VMStateDescription > vmstate_virtio_net_device = { > > vmstate_virtio_net_tx_waiting), > > VMSTATE_UINT64_TEST(curr_guest_offloads, VirtIONet, > > has_ctrl_guest_offloads), > > + VMSTATE_UINT8_ARRAY(rss_data_migration, VirtIONet, > > + sizeof(VirtioNetRssData)), > > VMSTATE_END_OF_LIST() > > }, > > > I think we should migrate the length too. Avoid arbitrary limits. > > > The length of what? Of the tables. > The structure is fixed-length and the intention is just to > keep/restore it. > The length of indirection table and the table itself are part of the structure. And that's a problem, because 1. we are wasting memory for a rarely used feature 2. if we want to make the table bigger, we'll need to break migration compatibility Just allocate these dynamically as needed, and migrate length.
Quoted 4 lines
Unfortunately, this does not make things much better.
The maximum table size is 128, i.e we have persistent allocation of 256 bytes.
1. Addition of the code to make the allocation dynamic and migrate it will eat most of this.
But that's shared between all VMs. Table is per VM.
Quoted 10 lines
2. If we decide to change the maximum size if future, we anyway create incompatibility. The driver asks what is maximum indirection table size at the initialization time and the OS provides a table according to this. If we migrate between two different implementations we find ourselves with queue mask that is not compatible with maximum size. I'd rather add the comment "do not change these numbers".
3. Size of key for Toeplitz is always 40Please confirm you want to make it dynamic anyway
Let's just make the code future-proof for when we want to change it.
Quoted 16 lines
Quoted 9 lines
Yes this means we should allocate the indirection arrays on the fly. But that's probably a good idea anyway.
> };
> --
> 2.17.1
PATCH v3 6/6 tap: allow extended virtio header with hash info
In reply to Yuri Benditovich--- net/tap.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
net/tap.c +10 -1
@@ -63,6 +63,14 @@ typedef struct TAPState {Notifier exit; } TAPState; +/* TODO: remove when virtio_net.h updated */ +struct virtio_net_hdr_v1_hash { +struct virtio_net_hdr_v1 hdr; +uint32_t hash_value; +uint16_t hash_report; +uint16_t padding; +}; +static void launch_script (const char *setup_script,const char *ifname,int fd,Error **errp);
@@ -254,7 +262,8 @@ static void tap_set_vnet_hdr_len(NetClientState *nc, int len)assert (nc->info->type ==NET_CLIENT_DRIVER_TAP );assert (len ==sizeof (struct virtio_net_hdr_mrg_rxbuf ) || - len ==sizeof (struct virtio_net_hdr )); + len ==sizeof (struct virtio_net_hdr ) || + len ==sizeof (struct virtio_net_hdr_v1_hash ));tap_fd_set_vnet_hdr_len (s->fd, len); s->host_vnet_hdr_len = len;
Signature · 1 line
2.17.1
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally.
=== TEST SCRIPT BEGIN ===
#!/bin/bash
export ARCH=x86_64
make docker-image-fedora V=1 NETWORK=1
time make docker-test-debug@fedora TARGET_LIST=x86_64-softmmu J=14 NETWORK=1 === TEST SCRIPT END ===
PASS 1 fdc-test /x86_64/fdc/cmos
PASS 2 fdc-test /x86_64/fdc/no_media_on_start
PASS 3 fdc-test /x86_64/fdc/read_without_media
==6173==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 fdc-test /x86_64/fdc/media_change
PASS 5 fdc-test /x86_64/fdc/sense_interrupt
PASS 6 fdc-test /x86_64/fdc/relative_seek
---
PASS 32 test-opts-visitor /visitor/opts/range/beyond
PASS 33 test-opts-visitor /visitor/opts/dict/unvisited
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-coroutine -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-coroutine"
==6248==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6248==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd0a11f000; bottom 0x7f6358320000; size: 0x0099b1dff000 (660114239488)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 1 test-coroutine /basic/no-dangling-access
---
PASS 12 fdc-test /x86_64/fdc/read_no_dma_19
PASS 13 fdc-test /x86_64/fdc/fuzz-registers
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/qtest/ide-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="ide-test" ==6263==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 14 test-aio /aio/timer/schedule
PASS 15 test-aio /aio/coroutine/queue-chaining
PASS 16 test-aio /aio-gsource/flush
---
PASS 25 test-aio /aio-gsource/event/wait
PASS 26 test-aio /aio-gsource/event/flush
PASS 27 test-aio /aio-gsource/event/wait/no-flush-cb
==6271==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 ide-test /x86_64/ide/identify
==6277==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 ide-test /x86_64/ide/flush
==6283==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 28 test-aio /aio-gsource/timer/schedule
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-aio-multithread -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-aio-multithread"
PASS 3 ide-test /x86_64/ide/bmdma/simple_rw
==6290==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-aio-multithread /aio/multi/lifecycle
==6292==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 ide-test /x86_64/ide/bmdma/trim
PASS 2 test-aio-multithread /aio/multi/schedule
==6309==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 test-aio-multithread /aio/multi/mutex/contended
PASS 4 test-aio-multithread /aio/multi/mutex/handoff
PASS 5 test-aio-multithread /aio/multi/mutex/mcs
==6330==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 6 test-aio-multithread /aio/multi/mutex/pthread
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-throttle -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-throttle"
==6342==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-throttle /throttle/leak_bucket
PASS 2 test-throttle /throttle/compute_wait
PASS 3 test-throttle /throttle/init
---
PASS 14 test-throttle /throttle/config/max
PASS 15 test-throttle /throttle/config/iops_size
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-thread-pool -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-thread-pool"
==6346==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-thread-pool /thread-pool/submit
PASS 2 test-thread-pool /thread-pool/submit-aio
PASS 3 test-thread-pool /thread-pool/submit-co
---
PASS 3 test-hbitmap /hbitmap/size/unaligned
PASS 4 test-hbitmap /hbitmap/iter/empty
PASS 5 test-hbitmap /hbitmap/iter/partial
==6417==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 6 test-hbitmap /hbitmap/iter/granularity
PASS 7 test-hbitmap /hbitmap/iter/iter_and_reset
PASS 8 test-hbitmap /hbitmap/get/all
---
PASS 28 test-hbitmap /hbitmap/truncate/shrink/medium
PASS 29 test-hbitmap /hbitmap/truncate/shrink/large
PASS 30 test-hbitmap /hbitmap/meta/zero
==6423==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 31 test-hbitmap /hbitmap/meta/one
PASS 32 test-hbitmap /hbitmap/meta/byte
PASS 33 test-hbitmap /hbitmap/meta/word
---
PASS 44 test-hbitmap /hbitmap/next_dirty_area/next_dirty_area_4
PASS 45 test-hbitmap /hbitmap/next_dirty_area/next_dirty_area_after_truncate
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bdrv-drain -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bdrv-drain"
==6430==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bdrv-drain /bdrv-drain/nested
PASS 2 test-bdrv-drain /bdrv-drain/multiparent
PASS 3 test-bdrv-drain /bdrv-drain/set_aio_context
---
PASS 41 test-bdrv-drain /bdrv-drain/bdrv_drop_intermediate/poll
PASS 42 test-bdrv-drain /bdrv-drain/replace_child/mid-drain
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bdrv-graph-mod -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bdrv-graph-mod"
==6469==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bdrv-graph-mod /bdrv-graph-mod/update-perm-tree
PASS 2 test-bdrv-graph-mod /bdrv-graph-mod/should-update-child
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-blockjob -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-blockjob"
==6475==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-blockjob /blockjob/ids
PASS 2 test-blockjob /blockjob/cancel/created
PASS 3 test-blockjob /blockjob/cancel/running
---
PASS 7 test-blockjob /blockjob/cancel/pending
PASS 8 test-blockjob /blockjob/cancel/concluded
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-blockjob-txn -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-blockjob-txn"
==6479==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-blockjob-txn /single/success
PASS 2 test-blockjob-txn /single/failure
PASS 3 test-blockjob-txn /single/cancel
---
PASS 6 test-blockjob-txn /pair/cancel
PASS 7 test-blockjob-txn /pair/fail-cancel-race
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-block-backend -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-block-backend"
==6484==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6471==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-block-backend /block-backend/drain_aio_error
PASS 2 test-block-backend /block-backend/drain_all_aio_error
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-block-iothread -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-block-iothread"
==6491==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-block-iothread /sync-op/pread
PASS 2 test-block-iothread /sync-op/pwrite
PASS 3 test-block-iothread /sync-op/load_vmstate
---
PASS 15 test-block-iothread /propagate/diamond
PASS 16 test-block-iothread /propagate/mirror
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-image-locking -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-image-locking"
==6511==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-image-locking /image-locking/basic
PASS 2 test-image-locking /image-locking/set-perm-abort
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-x86-cpuid -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-x86-cpuid"
---
PASS 2 rcutorture /rcu/torture/10readers
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-list -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-list"
PASS 1 test-rcu-list /rcu/qlist/single-threaded
==6569==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 test-rcu-list /rcu/qlist/short-few
PASS 3 test-rcu-list /rcu/qlist/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-simpleq -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-simpleq"
PASS 1 test-rcu-simpleq /rcu/qsimpleq/single-threaded
PASS 2 test-rcu-simpleq /rcu/qsimpleq/short-few
==6635==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 test-rcu-simpleq /rcu/qsimpleq/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-tailq -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-tailq"
PASS 1 test-rcu-tailq /rcu/qtailq/single-threaded
PASS 2 test-rcu-tailq /rcu/qtailq/short-few
PASS 3 test-rcu-tailq /rcu/qtailq/long-many
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-rcu-slist -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-rcu-slist"
==6674==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-rcu-slist /rcu/qslist/single-threaded
PASS 2 test-rcu-slist /rcu/qslist/short-few
PASS 3 test-rcu-slist /rcu/qslist/long-many
---
PASS 7 test-qdist /qdist/binning/expand
PASS 8 test-qdist /qdist/binning/shrink
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qht -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qht"
==6720==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 ide-test /x86_64/ide/bmdma/various_prdts
==6726==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6726==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffea025d000; bottom 0x7fd048bdc000; size: 0x002e57681000 (199034933248)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 6 ide-test /x86_64/ide/bmdma/no_busmaster
PASS 7 ide-test /x86_64/ide/flush/nodev
==6737==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 8 ide-test /x86_64/ide/flush/empty_drive
==6742==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 9 ide-test /x86_64/ide/flush/retry_pci
==6748==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 10 ide-test /x86_64/ide/flush/retry_isa
==6754==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 ide-test /x86_64/ide/cdrom/pio
==6760==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 ide-test /x86_64/ide/cdrom/pio_large
==6766==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 13 ide-test /x86_64/ide/cdrom/dma
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/qtest/ahci-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="ahci-test" PASS 1 test-qht /qht/mode/default
PASS 2 test-qht /qht/mode/resize
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qht-par -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qht-par"
==6781==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 ahci-test /x86_64/ahci/sanity
PASS 1 test-qht-par /qht/parallel/2threads-0%updates-1s
==6795==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 ahci-test /x86_64/ahci/pci_spec
==6807==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 ahci-test /x86_64/ahci/pci_enable
PASS 2 test-qht-par /qht/parallel/2threads-20%updates-1s
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bitops -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bitops"
==6813==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-bitops /bitops/sextract32
PASS 2 test-bitops /bitops/sextract64
PASS 3 test-bitops /bitops/half_shuffle32
---
PASS 8 check-qom-proplist /qom/proplist/delchild
PASS 9 check-qom-proplist /qom/resolve/partial
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qemu-opts -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qemu-opts"
==6832==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-qemu-opts /qemu-opts/find_unknown_opts
PASS 2 test-qemu-opts /qemu-opts/find_opts
PASS 3 test-qemu-opts /qemu-opts/opts_create
---
PASS 4 test-write-threshold /write-threshold/not-trigger
PASS 5 test-write-threshold /write-threshold/trigger
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-hash -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-hash"
==6861==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-hash /crypto/hash/iov
PASS 2 test-crypto-hash /crypto/hash/alloc
PASS 3 test-crypto-hash /crypto/hash/prealloc
---
PASS 15 test-crypto-secret /crypto/secret/crypt/missingiv
PASS 16 test-crypto-secret /crypto/secret/crypt/badiv
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-tlscredsx509 -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-tlscredsx509"
==6883==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 ahci-test /x86_64/ahci/max
PASS 1 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/perfectserver
PASS 2 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/perfectclient
==6897==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 8 ahci-test /x86_64/ahci/reset
PASS 3 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca1
PASS 4 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca2
==6903==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6903==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffeb8971000; bottom 0x7ffbd3ffe000; size: 0x0002e4973000 (12425048064)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 5 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodca3
---
PASS 8 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badca3
PASS 9 ahci-test /x86_64/ahci/io/pio/lba28/simple/zero
PASS 9 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver1
==6909==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6909==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc07f22000; bottom 0x7fd5b3bfe000; size: 0x002654324000 (164621336576)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 10 ahci-test /x86_64/ahci/io/pio/lba28/simple/low
PASS 10 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver2
==6915==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver3
==6915==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff1251a000; bottom 0x7f67305fe000; size: 0x0097e1f1c000 (652330778624)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 11 ahci-test /x86_64/ahci/io/pio/lba28/simple/high
==6921==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6921==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffddea1c000; bottom 0x7f5cc9dfe000; size: 0x00a114c1e000 (691837984768)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 12 ahci-test /x86_64/ahci/io/pio/lba28/double/zero
==6927==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6927==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe39f17000; bottom 0x7f46ecdfe000; size: 0x00b74d119000 (787272011776)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 13 ahci-test /x86_64/ahci/io/pio/lba28/double/low
PASS 12 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver4
==6933==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6933==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc0f12d000; bottom 0x7fa6d17fe000; size: 0x00553d92f000 (366105260032)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 13 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver5
PASS 14 ahci-test /x86_64/ahci/io/pio/lba28/double/high
PASS 14 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver6
==6939==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 15 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/goodserver7
PASS 16 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badserver1
PASS 17 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/badserver2
---
PASS 32 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/inactive1
PASS 33 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/inactive2
PASS 34 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/inactive3
==6939==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffea7078000; bottom 0x7f01847fe000; size: 0x00fd2287a000 (1087206039552)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 35 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/chain1
---
PASS 39 test-crypto-tlscredsx509 /qcrypto/tlscredsx509/missingclient
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-tlssession -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-tlssession"
PASS 15 ahci-test /x86_64/ahci/io/pio/lba28/long/zero
==6949==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-tlssession /qcrypto/tlssession/psk
==6949==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe10477000; bottom 0x7fb53f924000; size: 0x0048d0b53000 (312739180544)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 16 ahci-test /x86_64/ahci/io/pio/lba28/long/low
PASS 2 test-crypto-tlssession /qcrypto/tlssession/basicca
==6955==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 test-crypto-tlssession /qcrypto/tlssession/differentca
==6955==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff7b1ee000; bottom 0x7f67fb77c000; size: 0x00977fa72000 (650681720832)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 17 ahci-test /x86_64/ahci/io/pio/lba28/long/high
PASS 4 test-crypto-tlssession /qcrypto/tlssession/altname1
==6961==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 test-crypto-tlssession /qcrypto/tlssession/altname2
PASS 6 test-crypto-tlssession /qcrypto/tlssession/altname3
PASS 18 ahci-test /x86_64/ahci/io/pio/lba28/short/zero
==6967==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 test-crypto-tlssession /qcrypto/tlssession/altname4
PASS 19 ahci-test /x86_64/ahci/io/pio/lba28/short/low
==6973==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 20 ahci-test /x86_64/ahci/io/pio/lba28/short/high
PASS 8 test-crypto-tlssession /qcrypto/tlssession/altname5
==6979==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 9 test-crypto-tlssession /qcrypto/tlssession/altname6
==6979==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe414a3000; bottom 0x7efccfdfe000; size: 0x0101716a5000 (1105709387776)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 21 ahci-test /x86_64/ahci/io/pio/lba48/simple/zero
==6985==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 10 test-crypto-tlssession /qcrypto/tlssession/wildcard1
==6985==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffddac78000; bottom 0x7f2c4b9fe000; size: 0x00d18f27a000 (900049903616)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 22 ahci-test /x86_64/ahci/io/pio/lba48/simple/low
PASS 11 test-crypto-tlssession /qcrypto/tlssession/wildcard2
==6991==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6991==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc8a2c6000; bottom 0x7f84655fe000; size: 0x007824cc8000 (516013457408)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 12 test-crypto-tlssession /qcrypto/tlssession/wildcard3
PASS 23 ahci-test /x86_64/ahci/io/pio/lba48/simple/high
PASS 13 test-crypto-tlssession /qcrypto/tlssession/wildcard4
==6997==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==6997==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe84876000; bottom 0x7f82c6dfe000; size: 0x007bbda78000 (531462848512)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 24 ahci-test /x86_64/ahci/io/pio/lba48/double/zero
==7003==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 14 test-crypto-tlssession /qcrypto/tlssession/wildcard5
==7003==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffdf2847000; bottom 0x7f0dd1ffe000; size: 0x00f020849000 (1031337709568)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 15 test-crypto-tlssession /qcrypto/tlssession/wildcard6
PASS 25 ahci-test /x86_64/ahci/io/pio/lba48/double/low
PASS 16 test-crypto-tlssession /qcrypto/tlssession/cachain
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qga -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qga"
==7009==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7009==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd5e251000; bottom 0x7f2eb59fe000; size: 0x00cea8853000 (887590563840)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 26 ahci-test /x86_64/ahci/io/pio/lba48/double/high
---
PASS 15 test-qga /qga/invalid-cmd
PASS 16 test-qga /qga/invalid-args
PASS 17 test-qga /qga/fsfreeze-status
==7023==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7023==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd88434000; bottom 0x7f2fe2724000; size: 0x00cda5d10000 (883250233344)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 27 ahci-test /x86_64/ahci/io/pio/lba48/long/zero
---
PASS 19 test-qga /qga/config
PASS 20 test-qga /qga/guest-exec
PASS 21 test-qga /qga/guest-exec-invalid
==7032==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7032==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe136ec000; bottom 0x7fb1713fe000; size: 0x004ca22ee000 (329138495488)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 28 ahci-test /x86_64/ahci/io/pio/lba48/long/low
---
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-timed-average -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-timed-average"
PASS 1 test-timed-average /timed-average/average
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-util-filemonitor -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-util-filemonitor"
==7050==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-util-filemonitor /util/filemonitor
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-util-sockets -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-util-sockets"
==7050==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffd28943000; bottom 0x7fe9019fe000; size: 0x001426f45000 (86552891392)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 1 test-util-sockets /util/socket/is-socket/bad
---
PASS 4 test-authz-listfile /auth/list/explicit/deny
PASS 5 test-authz-listfile /auth/list/explicit/allow
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-io-task -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-io-task"
==7074==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-io-task /crypto/task/complete
PASS 2 test-io-task /crypto/task/datafree
PASS 3 test-io-task /crypto/task/failure
---
PASS 4 test-io-channel-file /io/channel/pipe/sync
PASS 5 test-io-channel-file /io/channel/pipe/async
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-io-channel-tls -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-io-channel-tls"
==7142==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-io-channel-tls /qio/channel/tls/basic
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-io-channel-command -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-io-channel-command"
PASS 31 ahci-test /x86_64/ahci/io/pio/lba48/short/low
---
PASS 3 test-base64 /util/base64/not-nul-terminated
PASS 4 test-base64 /util/base64/invalid-chars
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-pbkdf -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-pbkdf"
==7160==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-pbkdf /crypto/pbkdf/rfc3962/sha1/iter1
PASS 2 test-crypto-pbkdf /crypto/pbkdf/rfc3962/sha1/iter2
PASS 3 test-crypto-pbkdf /crypto/pbkdf/rfc3962/sha1/iter1200a
---
PASS 17 test-crypto-xts /crypto/xts/t-21-key-32-ptx-31/basic
PASS 18 test-crypto-xts /crypto/xts/t-21-key-32-ptx-31/unaligned
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-crypto-block -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-crypto-block"
==7181==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-crypto-block /crypto/block/qcow
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-logging -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-logging"
PASS 1 test-logging /logging/parse_range
---
PASS 4 test-logging /logging/logfile_lock_path
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-replication -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-replication"
PASS 33 ahci-test /x86_64/ahci/io/dma/lba28/fragmented
==7204==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 1 test-replication /replication/primary/read
==7206==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 test-replication /replication/primary/write
PASS 34 ahci-test /x86_64/ahci/io/dma/lba28/retry
==7214==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 35 ahci-test /x86_64/ahci/io/dma/lba28/simple/zero
PASS 3 test-replication /replication/primary/start
PASS 4 test-replication /replication/primary/stop
PASS 5 test-replication /replication/primary/do_checkpoint
PASS 6 test-replication /replication/primary/get_error_all
==7220==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 36 ahci-test /x86_64/ahci/io/dma/lba28/simple/low
PASS 7 test-replication /replication/secondary/read
==7226==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 8 test-replication /replication/secondary/write
PASS 37 ahci-test /x86_64/ahci/io/dma/lba28/simple/high
==7232==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 38 ahci-test /x86_64/ahci/io/dma/lba28/double/zero
==7238==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 39 ahci-test /x86_64/ahci/io/dma/lba28/double/low
==7245==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 40 ahci-test /x86_64/ahci/io/dma/lba28/double/high
==7204==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffde8991000; bottom 0x7f68aee69000; size: 0x009539b28000 (640918126592)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
==7251==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7251==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc40da8000; bottom 0x7f756cf7b000; size: 0x0086d3e2d000 (579080474624)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 9 test-replication /replication/secondary/start
PASS 41 ahci-test /x86_64/ahci/io/dma/lba28/long/zero
==7276==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7276==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fffb256f000; bottom 0x7f77b9b7b000; size: 0x0087f89f4000 (583991771136)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 42 ahci-test /x86_64/ahci/io/dma/lba28/long/low
==7283==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7283==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffc2319d000; bottom 0x7f2406b23000; size: 0x00d81c67a000 (928189489152)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 43 ahci-test /x86_64/ahci/io/dma/lba28/long/high
==7290==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 44 ahci-test /x86_64/ahci/io/dma/lba28/short/zero
PASS 10 test-replication /replication/secondary/stop
==7296==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 45 ahci-test /x86_64/ahci/io/dma/lba28/short/low
==7302==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 46 ahci-test /x86_64/ahci/io/dma/lba28/short/high
==7308==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 47 ahci-test /x86_64/ahci/io/dma/lba48/simple/zero
==7314==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 test-replication /replication/secondary/continuous_replication
PASS 48 ahci-test /x86_64/ahci/io/dma/lba48/simple/low
==7320==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 49 ahci-test /x86_64/ahci/io/dma/lba48/simple/high
==7326==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 50 ahci-test /x86_64/ahci/io/dma/lba48/double/zero
==7332==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 test-replication /replication/secondary/do_checkpoint
PASS 51 ahci-test /x86_64/ahci/io/dma/lba48/double/low
==7338==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 13 test-replication /replication/secondary/get_error_all
PASS 52 ahci-test /x86_64/ahci/io/dma/lba48/double/high
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-bufferiszero -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-bufferiszero"
==7344==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7344==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcf65b8000; bottom 0x7fd1647fd000; size: 0x002b91dbb000 (187130687488)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 53 ahci-test /x86_64/ahci/io/dma/lba48/long/zero
==7354==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7354==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffe5a100000; bottom 0x7fd142523000; size: 0x002d17bdd000 (193671843840)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 54 ahci-test /x86_64/ahci/io/dma/lba48/long/low
==7361==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7361==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff374b9000; bottom 0x7f627c3fd000; size: 0x009cbb0bc000 (673153007616)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 55 ahci-test /x86_64/ahci/io/dma/lba48/long/high
==7368==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 56 ahci-test /x86_64/ahci/io/dma/lba48/short/zero
==7374==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 57 ahci-test /x86_64/ahci/io/dma/lba48/short/low
==7380==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 58 ahci-test /x86_64/ahci/io/dma/lba48/short/high
==7386==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 59 ahci-test /x86_64/ahci/io/ncq/simple
==7392==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 60 ahci-test /x86_64/ahci/io/ncq/retry
==7398==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 61 ahci-test /x86_64/ahci/flush/simple
==7404==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 62 ahci-test /x86_64/ahci/flush/retry
==7410==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7416==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 63 ahci-test /x86_64/ahci/flush/migrate
==7424==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7430==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 64 ahci-test /x86_64/ahci/migrate/sanity
==7438==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7444==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 65 ahci-test /x86_64/ahci/migrate/dma/simple
==7452==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7458==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 66 ahci-test /x86_64/ahci/migrate/dma/halted
==7466==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7472==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 67 ahci-test /x86_64/ahci/migrate/ncq/simple
==7480==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7486==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 68 ahci-test /x86_64/ahci/migrate/ncq/halted
==7494==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 69 ahci-test /x86_64/ahci/cdrom/eject
==7499==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 70 ahci-test /x86_64/ahci/cdrom/dma/single
==7505==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 71 ahci-test /x86_64/ahci/cdrom/dma/multi
==7511==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 72 ahci-test /x86_64/ahci/cdrom/pio/single
PASS 1 test-bufferiszero /cutils/bufferiszero
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-uuid -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-uuid"
---
PASS 4 test-uuid /uuid/unparse
PASS 5 test-uuid /uuid/unparse_strdup
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/ptimer-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="ptimer-test"
==7517==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7517==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7ffcccf15000; bottom 0x7f9ae8ffe000; size: 0x0061e3f17000 (420436078592)
False positive error reports may follow
For details see https://github.com/google/sanitizers/issues/189
PASS 73 ahci-test /x86_64/ahci/cdrom/pio/multi
---
PASS 1 test-qapi-util /qapi/util/qapi_enum_parse
PASS 2 test-qapi-util /qapi/util/parse_qapi_name
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} tests/test-qgraph -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="test-qgraph"
==7529==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 74 ahci-test /x86_64/ahci/cdrom/pio/bcl
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/qtest/hd-geo-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="hd-geo-test" PASS 1 test-qgraph /qgraph/init_nop
---
PASS 22 test-qgraph /qgraph/test_test_in_path
PASS 23 test-qgraph /qgraph/test_double_edge
PASS 1 hd-geo-test /x86_64/hd-geo/ide/none
==7550==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 2 hd-geo-test /x86_64/hd-geo/ide/drive/cd_0
==7556==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 3 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/blank
==7562==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 4 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/lba
==7568==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 5 hd-geo-test /x86_64/hd-geo/ide/drive/mbr/chs
==7574==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 6 hd-geo-test /x86_64/hd-geo/ide/device/mbr/blank
==7580==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 7 hd-geo-test /x86_64/hd-geo/ide/device/mbr/lba
==7586==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 8 hd-geo-test /x86_64/hd-geo/ide/device/mbr/chs
==7592==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 9 hd-geo-test /x86_64/hd-geo/ide/device/user/chs
==7597==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 10 hd-geo-test /x86_64/hd-geo/ide/device/user/chst
==7603==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7607==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7611==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7615==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7619==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7623==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7627==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7631==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7634==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 11 hd-geo-test /x86_64/hd-geo/override/ide
==7641==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7645==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7649==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7653==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7657==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7661==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7665==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7669==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7672==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 12 hd-geo-test /x86_64/hd-geo/override/scsi
==7679==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7683==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7687==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7691==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7695==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7699==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7703==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7707==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7710==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 13 hd-geo-test /x86_64/hd-geo/override/scsi_2_controllers
==7717==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7721==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7725==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7729==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7732==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 14 hd-geo-test /x86_64/hd-geo/override/virtio_blk
==7739==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7743==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7746==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 15 hd-geo-test /x86_64/hd-geo/override/zero_chs
==7753==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7757==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7761==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7765==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7768==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 16 hd-geo-test /x86_64/hd-geo/override/scsi_hot_unplug
==7775==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7779==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7783==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7787==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
==7790==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
PASS 17 hd-geo-test /x86_64/hd-geo/override/virtio_hot_unplug
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} QTEST_QEMU_BINARY=x86_64-softmmu/qemu-system-x86_64 QTEST_QEMU_IMG=qemu-img tests/qtest/boot-order-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="boot-order-test" PASS 1 boot-order-test /x86_64/boot-order/pc
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7859==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP'
Using expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7865==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP'
Using expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7871==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.bridge'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7877==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.ipmikcs'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7883==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.cphp'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7890==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.memhp'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7896==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.numamem'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7902==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.dimmpxm'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7911==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/pc/FACP.acpihmat'
Looking for expected file 'tests/data/acpi/pc/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7918==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.bridge'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7924==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.mmio64'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7930==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.ipmibt'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7936==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.cphp'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7943==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.memhp'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7949==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.numamem'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7955==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.dimmpxm'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
==7964==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
Looking for expected file 'tests/data/acpi/q35/FACP.acpihmat'
Looking for expected file 'tests/data/acpi/q35/FACP'
---
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
=================================================================
==7994==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffdad795d80 at pc 0x557c0cace8aa bp 0x7ffdad790f60 sp 0x7ffdad790710 READ of size 1518 at 0x7ffdad795d80 thread T0
#0 0x557c0cace8a9 in __asan_memcpy (/tmp/qemu-test/build/x86_64-softmmu/qemu-system-x86_64+0x1aa68a9)
#1 0x557c0f39d31d in iov_from_buf_full /tmp/qemu-test/src/util/iov.c:33:13---
==7994==ABORTING
Broken pipe/tmp/qemu-test/src/tests/qtest/libqtest.c:166: kill_qemu() tried to terminate QEMU process but encountered exit status 1 (expected 0)
ERROR - too few tests run (expected 4, got 1)
make: *** [/tmp/qemu-test/src/tests/Makefile.include:632: check-qtest-x86_64] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "./tests/docker/docker.py", line 664, in <module>
---
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=b8faa735c21949ee8e93189b011a3a02', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=x86_64-softmmu', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-u7t8hpz8/src/docker-src.2020-03-11-08.42.32.18721:/var/tmp/qemu:z,ro', 'qemu:fedora', '/var/tmp/qemu/run', 'test-debug']' returned non-zero exit status 2. filter=--filter=label=com.qemu.instance.uuid=b8faa735c21949ee8e93189b011a3a02
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-u7t8hpz8/src'
make: *** [docker-run-test-debug@fedora] Error 2
real 27m42.697s
user 0m8.780s
The full log is available at
http://patchew.org/logs/[email protected]/testing.asan/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]