pub fn setup_sregs(
mem: &GuestMemoryMmap,
vcpu: &VcpuFd,
boot_prot: BootProtocol,
) -> Result<(), SetupSpecialRegistersError>Expand description
Configures the special registers and system page tables for a given CPU.
§Arguments
mem- The memory that will be passed to the guest.vcpu- Structure for the VCPU that holds the VCPU’s fd.boot_prot- The boot protocol being used.
§Errors
When:
- [
kvm_ioctls::ioctls::vcpu::VcpuFd::get_sregs] errors. - [
configure_segments_and_sregs] errors. - [
setup_page_tables] errors - [
kvm_ioctls::ioctls::vcpu::VcpuFd::set_sregs] errors.