---
title: requestReset()
framework: virtualization
role: symbol
role_heading: Instance Method
path: virtualization/vzcustomvirtiodevice/requestreset()
---

# requestReset()

A request to reset the device.

## Declaration

```swift
func requestReset()
```

## Discussion

Discussion This method initiates a reset from the host by setting DEVICE_NEEDS_RESET, and the guest may or may not take action. The guest could also initiate a reset by itself. In both scenarios, the framework callscustomVirtioDeviceWillReset(_:) when the device should reset.
