> 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/hv_netvsc.4.md).

# hv\_netvsc.4

`hv_netvsc` — Hyper-V 网络虚拟服务消费者

## 名称

`hv_netvsc`

## 概要

`要将此驱动编译进内核，请在系统内核配置文件中加入以下行：`

> device hyperv

## 描述

`hv_netvsc` 驱动为运行于 Hyper-V 上的 FreeBSD 客户机分区实现虚拟网络设备。运行于 Hyper-V 上的 FreeBSD 客户机分区无法直接访问连接到 Hyper-V 服务器的网络设备。虽然 FreeBSD 客户机可以使用 Hyper-V 的完全仿真模式访问网络设备，但此模式下的性能往往不能令人满意。

为解决上述问题，`hv_netvsc` 驱动实现了网络虚拟服务消费者（VSC），使用 [hv\_vmbus(4)](/man/man4/hv_vmbus.4.md) 驱动提供的高性能数据交换基础设施，将来自客户机分区的网络请求中继到根分区中托管的网络虚拟服务提供者（VSP）。根分区中的 VSP 随后将网络相关请求转发到物理网卡。

## 参见

hv\_ata\_pci\_disengage(4), [hv\_storvsc(4)](/man/man4/hv_storvsc.4.md), [hv\_utils(4)](/man/man4/hv_utils.4.md), [hv\_vmbus(4)](/man/man4/hv_vmbus.4.md)

## 历史

`hv_netvsc` 的支持最早出现在 FreeBSD 10.0 中。该驱动由 Citrix Incorporated、Microsoft Corporation 和 Network Appliance Incorporated 联合开发。

## 作者

`hv_netvsc` 的 FreeBSD 支持最早由 Microsoft BSD Integration Services Team <bsdic@microsoft.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/hv_netvsc.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.
