• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

google / alioth / 17385983897

01 Sep 2025 07:41PM UTC coverage: 18.009% (-0.1%) from 18.149%
17385983897

Pull #281

github

web-flow
Merge 782c57b11 into 6ec9a6d6b
Pull Request #281: Port to Apple Hypervisor framework

0 of 154 new or added lines in 11 files covered. (0.0%)

1166 existing lines in 29 files now uncovered.

1362 of 7563 relevant lines covered (18.01%)

18.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/alioth/src/hv/hvf/vcpu/vmentry.rs
1
// Copyright 2024 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15
use std::io::ErrorKind;
16

17
use snafu::ResultExt;
18

19
use crate::hv::hvf::bindings::hv_vcpu_set_reg;
20
use crate::hv::hvf::check_ret;
21
use crate::hv::hvf::vcpu::HvfVcpu;
22
use crate::hv::{Result, error};
23

24
impl HvfVcpu {
NEW
25
    pub fn entry_mmio(&mut self, data: u64) -> Result<()> {
×
NEW
26
        let Some(reg) = self.exit_reg.take() else {
×
NEW
27
            return Err(ErrorKind::InvalidInput.into()).context(error::RunVcpu);
×
28
        };
29
        let ret = unsafe { hv_vcpu_set_reg(self.vcpu_id, reg, data) };
30
        check_ret(ret).context(error::VcpuReg)
31
    }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc