Project

General

Profile

Actions

Feature #12553

closed

want segment driver for vmm applications

Added by Patrick Mooney about 2 years ago. Updated about 2 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
bhyve
Gerrit CR:

Description

Upstreaming SmartOS OS-6549:

Applications such as the coming bhyve will want userspace access to the regions of kmem allocated to be the guest memory. While seg_umap exists to achieve a similar purpose, it was designed to be very constrained (a single page) in its capabilities. Rather than updating that for now, a new segment driver with lessened restrictions could be created.

Actions #1

Updated by Patrick Mooney about 2 years ago

  • Subject changed from vmm segment driver to want segment driver for vmm applications
Actions #2

Updated by Patrick Mooney about 2 years ago

Without bhyve as a consumer, there is little available to test this. I compared the to-be committed patch with what's present downstream in illumos-joyent to ensure there weren't differences. Additionally, I booted an illumos-gate built with the patch to confirm it didn't introduce a bug via something like missing symbols.

Actions #3

Updated by Patrick Mooney about 2 years ago

This change has been present in illumos-omnios for quite some time, with bhyve as a successful consumer there.

Actions #4

Updated by Electric Monk about 2 years ago

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

git commit 4beb21b1d94ca2e60959502f85aaae16f22c01e2

commit  4beb21b1d94ca2e60959502f85aaae16f22c01e2
Author: Patrick Mooney <pmooney@pfmooney.com>
Date:   2020-04-27T16:06:25.000Z

    12553 want segment driver for vmm applications
    Reviewed by: Mike Gerdts <mike.gerdts@joyent.com>
    Reviewed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF