> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man4/pvscsi.4.md).

# pvscsi.4

`pvscsi` — VMware 半虚拟 SCSI 控制器

## 名称

`pvscsi`

## 概要

若要将此驱动程序编译进内核，请在你的内核配置文件中加入以下行：

> device pci device scbus device pvscsi

或者，若要在引导时以模块方式加载驱动程序，在 loader.conf(5) 中加入以下行：

```sh
pvscsi_load="YES"
```

以下可调参数可在 [loader(8)](/man/man8/loader.8.md) 中设置：

控制为设备请求环分配的页数。非正值将使驱动程序根据设备能力选择值。非零值将使用该数量的页，最多 32。默认设置为 0。

控制适配器的队列大小。非正值将使驱动程序根据请求环页数选择值。非零值将设置队列大小，上限为请求环页数所允许的最大值。默认为 0。

设为非零值可启用 PVSCSI 消息队列，允许磁盘热添加和移除而无需手动重新扫描。默认为 1。

设为非零值可启用 MSI 中断。默认为 1。

设为非零值可启用 MSI-X 中断。默认为 1。

设为非零值可启用请求调用阈值功能。TODO。默认为 1。

**hw\.pvscsi.request\_ring\_pages**

**hw\.pvscsi.max\_queue\_depth**

**hw\.pvscsi.use\_msg**

**hw\.pvscsi.use\_msi**

**hw\.pvscsi.use\_msix**

**hw\.pvscsi.use\_req\_call\_threshold**

## 描述

`pvscsi` 驱动程序为 VMware 虚拟机中的 VMware 半虚拟 SCSI 控制器（PVSCSI）提供支持。

## 参见

cam(4), [da(4)](/man/man4/da.4.md)

## 历史

`pvscsi` 驱动程序首次出现于 FreeBSD 13.0。

## 作者

Vishal Bhakta <vbhakta@vmware.com>。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man4/pvscsi.4.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
