[PATCH 0/4] bhyve: introduce PCI device passthrough support

Roman Bogorodskiy posted 4 patches 2 weeks, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20251101062424.57331-1-bogorodskiy@gmail.com
src/bhyve/bhyve_capabilities.c                |  2 +-
src/bhyve/bhyve_command.c                     | 27 +++++++++
src/bhyve/bhyve_device.c                      | 10 ++++
src/bhyve/bhyve_domain.c                      |  6 ++
src/bhyve/bhyve_parse_command.c               | 60 +++++++++++++++++++
.../bhyveargv2xml-passthru.args               |  7 +++
.../bhyveargv2xml-passthru.xml                | 22 +++++++
tests/bhyveargv2xmltest.c                     |  1 +
.../bhyvexml2argv-passthru-multiple-devs.args | 12 ++++
...hyvexml2argv-passthru-multiple-devs.ldargs |  4 ++
.../bhyvexml2argv-passthru-multiple-devs.xml  | 41 +++++++++++++
.../bhyvexml2argv-passthru.args               | 10 ++++
.../bhyvexml2argv-passthru.ldargs             |  4 ++
.../bhyvexml2argv-passthru.xml                | 31 ++++++++++
tests/bhyvexml2argvtest.c                     |  2 +
...bhyvexml2xmlout-passthru-multiple-devs.xml | 48 +++++++++++++++
tests/bhyvexml2xmltest.c                      |  1 +
tests/domaincapsdata/bhyve_basic.x86_64.xml   |  3 +-
tests/domaincapsdata/bhyve_fbuf.x86_64.xml    |  3 +-
tests/domaincapsdata/bhyve_uefi.x86_64.xml    |  3 +-
20 files changed, 293 insertions(+), 4 deletions(-)
create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.args
create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.xml
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.args
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.ldargs
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.xml
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.args
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.ldargs
create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.xml
create mode 100644 tests/bhyvexml2xmloutdata/bhyvexml2xmlout-passthru-multiple-devs.xml
[PATCH 0/4] bhyve: introduce PCI device passthrough support
Posted by Roman Bogorodskiy 2 weeks, 6 days ago
Alexander Shursha (3):
  bhyve: Support passing the 'passthru' command line option
  bhyve: Advertise hostdev support
  bhyve: Tie the 'passthru' option to the 'hostdev' XML config

Roman Bogorodskiy (1):
  bhyve: auto-assign PCI addresses for hostdevs

 src/bhyve/bhyve_capabilities.c                |  2 +-
 src/bhyve/bhyve_command.c                     | 27 +++++++++
 src/bhyve/bhyve_device.c                      | 10 ++++
 src/bhyve/bhyve_domain.c                      |  6 ++
 src/bhyve/bhyve_parse_command.c               | 60 +++++++++++++++++++
 .../bhyveargv2xml-passthru.args               |  7 +++
 .../bhyveargv2xml-passthru.xml                | 22 +++++++
 tests/bhyveargv2xmltest.c                     |  1 +
 .../bhyvexml2argv-passthru-multiple-devs.args | 12 ++++
 ...hyvexml2argv-passthru-multiple-devs.ldargs |  4 ++
 .../bhyvexml2argv-passthru-multiple-devs.xml  | 41 +++++++++++++
 .../bhyvexml2argv-passthru.args               | 10 ++++
 .../bhyvexml2argv-passthru.ldargs             |  4 ++
 .../bhyvexml2argv-passthru.xml                | 31 ++++++++++
 tests/bhyvexml2argvtest.c                     |  2 +
 ...bhyvexml2xmlout-passthru-multiple-devs.xml | 48 +++++++++++++++
 tests/bhyvexml2xmltest.c                      |  1 +
 tests/domaincapsdata/bhyve_basic.x86_64.xml   |  3 +-
 tests/domaincapsdata/bhyve_fbuf.x86_64.xml    |  3 +-
 tests/domaincapsdata/bhyve_uefi.x86_64.xml    |  3 +-
 20 files changed, 293 insertions(+), 4 deletions(-)
 create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.args
 create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.xml
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.ldargs
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.xml
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.args
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.ldargs
 create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.xml
 create mode 100644 tests/bhyvexml2xmloutdata/bhyvexml2xmlout-passthru-multiple-devs.xml

-- 
2.51.0
Re: [PATCH 0/4] bhyve: introduce PCI device passthrough support
Posted by Michal Prívozník via Devel 2 weeks, 3 days ago
On 11/1/25 07:24, Roman Bogorodskiy wrote:
> Alexander Shursha (3):
>   bhyve: Support passing the 'passthru' command line option
>   bhyve: Advertise hostdev support
>   bhyve: Tie the 'passthru' option to the 'hostdev' XML config
> 
> Roman Bogorodskiy (1):
>   bhyve: auto-assign PCI addresses for hostdevs
> 
>  src/bhyve/bhyve_capabilities.c                |  2 +-
>  src/bhyve/bhyve_command.c                     | 27 +++++++++
>  src/bhyve/bhyve_device.c                      | 10 ++++
>  src/bhyve/bhyve_domain.c                      |  6 ++
>  src/bhyve/bhyve_parse_command.c               | 60 +++++++++++++++++++
>  .../bhyveargv2xml-passthru.args               |  7 +++
>  .../bhyveargv2xml-passthru.xml                | 22 +++++++
>  tests/bhyveargv2xmltest.c                     |  1 +
>  .../bhyvexml2argv-passthru-multiple-devs.args | 12 ++++
>  ...hyvexml2argv-passthru-multiple-devs.ldargs |  4 ++
>  .../bhyvexml2argv-passthru-multiple-devs.xml  | 41 +++++++++++++
>  .../bhyvexml2argv-passthru.args               | 10 ++++
>  .../bhyvexml2argv-passthru.ldargs             |  4 ++
>  .../bhyvexml2argv-passthru.xml                | 31 ++++++++++
>  tests/bhyvexml2argvtest.c                     |  2 +
>  ...bhyvexml2xmlout-passthru-multiple-devs.xml | 48 +++++++++++++++
>  tests/bhyvexml2xmltest.c                      |  1 +
>  tests/domaincapsdata/bhyve_basic.x86_64.xml   |  3 +-
>  tests/domaincapsdata/bhyve_fbuf.x86_64.xml    |  3 +-
>  tests/domaincapsdata/bhyve_uefi.x86_64.xml    |  3 +-
>  20 files changed, 293 insertions(+), 4 deletions(-)
>  create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.args
>  create mode 100644 tests/bhyveargv2xmldata/bhyveargv2xml-passthru.xml
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.args
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.ldargs
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru-multiple-devs.xml
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.args
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.ldargs
>  create mode 100644 tests/bhyvexml2argvdata/bhyvexml2argv-passthru.xml
>  create mode 100644 tests/bhyvexml2xmloutdata/bhyvexml2xmlout-passthru-multiple-devs.xml
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal