Daniel Henrique Barboza
b0264e9404
virpci.c: simplify virPCIDeviceNew() signature
...
The current virPCIDeviceNew() signature, receiving 4 uints in sequence
(domain, bus, slot, function), is not neat.
We already have a way to represent a PCI address in virPCIDeviceAddress
that is used in the code. Aside from the test files, most of
virPCIDeviceNew() callers have access to a virPCIDeviceAddress reference,
but then we need to retrieve the 4 required uints (addr.domain, addr.bus,
addr.slot, addr.function) to satisfy virPCIDeviceNew(). The result is
that we have extra verbosity/boilerplate to retrieve an information that
is already available in virPCIDeviceAddress.
A better way is presented by virNVMEDeviceNew(), where the caller just
supplies a virPCIDeviceAddress pointer and the function handles the
details internally.
This patch changes virPCIDeviceNew() to receive a virPCIDeviceAddress
pointer instead of 4 uints.
Reviewed-by: Laine Stump <laine@redhat.com >
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com >
2021-01-29 17:52:10 -03:00
..
2020-01-07 14:42:26 +00:00
2020-12-03 15:01:43 +00:00
2020-10-06 12:31:34 +02:00
2021-01-22 11:10:27 +01:00
2020-10-08 19:19:22 +02:00
2020-10-08 19:19:22 +02:00
2020-01-29 14:51:39 +00:00
2020-11-20 12:09:51 +00:00
2021-01-06 13:15:17 +01:00
2019-06-19 17:12:33 +02:00
2020-03-13 17:26:55 +01:00
2019-10-15 16:14:18 +02:00
2020-06-16 15:01:05 +02:00
2019-06-19 17:12:33 +02:00
2020-10-06 12:31:34 +02:00
2020-06-16 15:01:05 +02:00
2020-10-06 12:31:34 +02:00
2020-10-05 15:50:45 +02:00
2020-09-02 10:28:10 +02:00
2020-09-02 10:28:10 +02:00
2020-10-05 10:28:41 +01:00
2020-07-09 10:01:41 +02:00
2020-12-02 15:43:07 +01:00
2020-12-01 12:41:36 +01:00
2019-04-11 12:47:23 -04:00
2020-11-03 21:26:32 +01:00
2020-11-19 01:18:35 +01:00
2021-01-06 13:15:17 +01:00
2019-06-19 17:12:32 +02:00
2020-12-01 12:46:55 +01:00
2019-06-19 17:12:32 +02:00
2021-01-06 13:15:17 +01:00
2020-01-06 17:30:17 +01:00
2020-12-02 15:43:07 +01:00
2020-12-01 17:24:20 +01:00
2019-06-19 17:12:32 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2020-10-06 12:31:34 +02:00
2019-10-15 11:25:22 +02:00
2020-08-25 19:03:11 +02:00
2020-03-27 16:22:49 +01:00
2020-12-02 15:43:07 +01:00
2020-06-15 14:50:46 +02:00
2021-01-08 10:15:31 -05:00
2020-07-20 19:08:07 -04:00
2020-10-06 12:31:34 +02:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:33 +02:00
2019-04-11 12:47:23 -04:00
2020-01-17 10:02:01 +00:00
2021-01-21 10:18:21 +01:00
2020-03-13 17:26:55 +01:00
2019-06-19 17:12:32 +02:00
2020-09-23 13:26:34 +02:00
2019-12-18 14:04:59 +00:00
2020-11-26 13:30:35 +00:00
2020-02-07 15:03:53 +00:00
2020-08-07 12:43:56 +01:00
2020-08-07 12:43:56 +01:00
2020-09-23 17:06:36 +02:00
2020-03-11 14:44:04 +00:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:33 +02:00
2020-08-24 13:40:06 +02:00
2019-06-19 17:12:33 +02:00
2021-01-06 13:15:17 +01:00
2021-01-06 13:15:17 +01:00
2020-11-06 10:40:51 +01:00
2020-06-23 17:33:30 +01:00
2020-12-02 15:43:07 +01:00
2020-11-24 14:21:58 -05:00
2020-10-06 12:31:34 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:43 +02:00
2020-11-09 23:42:33 +01:00
2020-09-23 12:53:31 +02:00
2020-09-02 10:28:10 +02:00
2019-06-19 17:12:33 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 23:15:50 +01:00
2020-11-06 10:40:56 +01:00
2020-11-06 10:40:51 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-12-02 15:43:07 +01:00
2020-02-24 17:25:07 +00:00
2020-11-24 14:17:07 +01:00
2020-08-25 19:44:43 +02:00
2020-05-25 16:09:41 +02:00
2020-09-02 10:28:10 +02:00
2019-06-19 17:12:32 +02:00
2020-09-02 10:28:10 +02:00
2020-01-07 17:00:10 +01:00
2020-07-15 14:31:07 +02:00
2019-10-14 10:54:42 +01:00
2020-01-17 10:02:01 +00:00
2019-06-19 17:12:33 +02:00
2020-11-24 14:21:58 -05:00
2019-10-18 18:49:54 +01:00
2019-12-12 14:24:35 +01:00
2019-10-15 11:25:22 +02:00
2021-01-08 09:17:25 +01:00
2020-12-01 11:23:37 +01:00
2020-08-25 19:03:11 +02:00
2020-02-24 23:15:50 +01:00
2020-06-26 15:39:33 +01:00
2020-06-26 15:39:33 +01:00
2021-01-04 15:33:31 +01:00
2019-06-19 17:12:33 +02:00
2020-11-24 14:17:07 +01:00
2019-06-19 17:12:33 +02:00
2020-11-24 14:17:07 +01:00
2020-08-03 15:30:40 +02:00
2020-02-24 20:25:48 +01:00
2020-01-17 10:02:01 +00:00
2020-11-24 14:17:07 +01:00
2019-06-19 17:12:32 +02:00
2021-01-08 12:17:13 +01:00
2021-01-08 08:10:02 +01:00
2020-09-02 10:28:10 +02:00
2019-06-19 17:12:33 +02:00
2021-01-29 17:52:10 -03:00
2021-01-25 20:27:38 -05:00
2020-10-06 12:31:34 +02:00
2019-11-25 15:29:51 -05:00
2020-10-01 14:02:34 -04:00
2020-02-20 23:07:53 -05:00
2020-10-06 12:31:34 +02:00
2020-09-10 11:47:35 -04:00
2020-12-16 21:32:01 -05:00
2020-12-15 13:35:33 -05:00
2020-07-10 09:40:45 +02:00
2019-11-25 15:29:56 -05:00
2021-01-11 16:06:17 +01:00
2020-12-17 09:27:51 +01:00
2020-12-16 21:32:07 -05:00
2020-12-15 13:35:27 -05:00
2020-12-16 14:43:18 -05:00
2019-10-15 11:25:22 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2021-01-15 11:45:41 +01:00
2021-01-15 11:45:41 +01:00
2020-03-05 12:23:04 +00:00
2019-06-19 17:12:33 +02:00
2020-11-02 22:01:36 -05:00
2020-02-24 23:15:50 +01:00
2021-01-29 17:52:10 -03:00
2019-12-17 10:04:43 +01:00
2020-08-25 19:03:11 +02:00
2020-06-03 10:20:17 +01:00
2021-01-29 17:52:10 -03:00
2021-01-29 17:52:10 -03:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2021-01-06 13:15:17 +01:00
2019-10-15 11:25:22 +02:00
2020-10-06 12:31:34 +02:00
2019-06-19 17:12:33 +02:00
2020-10-06 12:31:34 +02:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:32 +02:00
2020-12-02 15:43:07 +01:00
2020-09-07 11:35:36 +02:00
2021-01-06 13:15:17 +01:00
2021-01-06 13:15:17 +01:00
2020-12-04 16:24:19 +01:00
2019-10-15 16:14:18 +02:00
2021-01-06 13:15:17 +01:00
2020-08-03 15:19:29 +02:00
2019-06-19 17:12:33 +02:00
2020-10-13 10:51:43 +01:00
2019-06-19 17:12:33 +02:00
2020-11-02 22:01:36 -05:00
2019-10-16 12:06:44 +02:00
2020-11-06 15:03:39 +01:00
2019-06-19 17:12:33 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2020-10-06 12:31:34 +02:00
2019-06-19 17:12:33 +02:00
2021-01-08 09:18:21 +01:00
2020-03-20 09:47:16 +01:00
2020-12-08 09:37:45 +00:00
2020-02-07 15:03:54 +00:00
2020-10-12 09:24:26 +02:00
2020-08-03 15:19:29 +02:00
2021-01-27 07:49:58 +01:00
2021-01-27 07:49:58 +01:00
2021-01-08 10:15:04 -05:00
2021-01-08 10:15:04 -05:00
2021-01-06 13:15:17 +01:00
2020-06-10 14:00:38 +02:00
2020-06-10 14:00:38 +02:00
2020-12-02 15:43:07 +01:00
2019-10-16 12:06:44 +02:00
2019-08-14 16:22:13 +02:00
2020-09-11 18:19:58 +02:00
2020-03-05 12:23:02 +00:00
2019-02-03 17:46:29 -05:00
2019-06-19 17:12:31 +02:00
2020-10-06 12:31:34 +02:00
2020-09-07 09:34:00 +03:00
2020-10-06 12:31:34 +02:00
2019-10-15 11:25:22 +02:00
2021-01-06 13:15:17 +01:00
2019-10-15 16:14:18 +02:00
2019-10-21 12:51:59 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:50 +01:00
2020-11-24 14:17:08 +01:00
2020-09-04 10:20:49 +02:00
2020-11-02 22:01:36 -05:00
2019-10-16 12:06:44 +02:00
2020-11-02 22:01:36 -05:00
2020-11-09 12:25:49 +01:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00
2020-11-02 22:01:36 -05:00
2019-06-19 17:12:33 +02:00
2020-09-02 10:28:10 +02:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:40 +00:00
2020-11-24 14:17:07 +01:00
2020-11-06 11:18:17 +01:00