Laine Stump 8f578716c7 conf: allow type='pci' addresses with no address attributes specified
Prior to this, <address type='pci'/> wasn't allowed when parsing
(domain+bus+slot+function needed to be a "valid" PCI address, meaning
that at least one of domain/bus/slot had to be non-0), the RNG
required bus to be specified, and if type was set to PCI when
formatting, domain+bus+slot+function would always be output.

This makes all the address attributes optional during parse and RNG
validation, and suppresses domain+bus+slot+function if domain+bus+slot
are all 0 (NB: if d+b+s are all 0, any value for function is
nonsensical as that will never happen in the real world, and after
the next patch we will always assign a real working address to any
empty PCI address before it is ever output to anywhere).

Note that explicitly setting all attributes to 0 is equivalent to
setting none of them, which is okay, since 0000:00:00 is reserved in
any PCI bus setup, and can't be used anyway.
2016-05-20 13:54:25 -04:00
..
2014-12-02 07:30:10 +01:00
2015-08-25 07:21:33 -04:00
2016-04-26 09:20:12 +02:00
2015-03-23 09:01:30 +01:00
2015-03-23 09:01:30 +01:00
2014-03-03 17:41:26 +04:00
2013-12-02 10:21:26 +08:00
2014-12-02 07:30:10 +01:00
2014-12-02 07:30:10 +01:00
2009-07-16 15:06:42 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2015-10-20 17:29:03 +02:00
2016-05-01 09:50:21 +08:00
2015-10-20 17:30:34 +02:00
2016-03-29 13:45:33 +02:00
2013-09-12 17:18:32 +08:00
2014-12-02 07:30:10 +01:00