Project

General

Profile

Actions

Bug #14864

closed

want device for testing vmm_drv interface

Added by Patrick Mooney 2 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Category:
bhyve
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

The vmm_drv interface is used by viona to directly access a bhyve instance for efficiently emulating virtio-net virtqueues. While this is a Private interface inside illumos, it would be nice if we could test portions of it as part of the existing unit test suite. We could create a separate module which exposes various vmm_drv operations for userspace to drive those testing tasks.


Related issues

Related to illumos gate - Bug #14817: bhyve VMs should be capable of auto-destructClosedPatrick Mooney

Actions
Related to illumos gate - Bug #14886: vmm_drv_test needs to be less IPS-dependentNew

Actions
Actions #1

Updated by Electric Monk 2 months ago

  • Gerrit CR set to 2268
Actions #2

Updated by Patrick Mooney 2 months ago

  • Related to Bug #14817: bhyve VMs should be capable of auto-destruct added
Actions #3

Updated by Patrick Mooney 2 months ago

This was added as part of #14817 so it could test the auto-destruct case when a VM is held by vmm_drv. A basic unit test which exercises vmm_hold and vmm_rele was included, which passes as expected:

Test: /opt/bhyve-tests/tests/vmm/drv_hold (run as root)           [00:00] [PASS]

Actions #4

Updated by Electric Monk 2 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

git commit aa39f6d0fd4e491afca04b12f49a18ce955efc79

commit  aa39f6d0fd4e491afca04b12f49a18ce955efc79
Author: Patrick Mooney <pmooney@pfmooney.com>
Date:   2022-08-02T20:56:48.000Z

    14817 bhyve VMs should be capable of auto-destruct
    14864 want device for testing vmm_drv interface
    Reviewed by: Greg Colombo <greg@oxidecomputer.com>
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions #5

Updated by Dan McDonald 2 months ago

  • Related to Bug #14886: vmm_drv_test needs to be less IPS-dependent added
Actions

Also available in: Atom PDF