diff --git a/rust/pvattest/src/cli.rs b/rust/pvattest/src/cli.rs index 2cfe368a..ab8dc4d4 100644 --- a/rust/pvattest/src/cli.rs +++ b/rust/pvattest/src/cli.rs @@ -35,12 +35,12 @@ pub enum Command { /// shred it after verification. Every 'create' will generate a new, random protection key. Create(Box), - /// Send the attestation request to the Ultravisor. + /// Send the attestation request to the Ultravisor (s390x only.) /// /// Run a measurement of this system through ’/dev/uv’. This device must be accessible and the /// attestation Ultravisor facility must be present. The input must be an attestation request /// created with ’pvattest create’. Output will contain the original request and the response - /// from the Ultravisor. + /// from the Ultravisor. Only available on s390x. Perform(PerformAttOpt), /// Verify an attestation response. @@ -110,27 +110,22 @@ pub enum AttAddFlags { FirmwareState, } -// all members s390x only #[derive(Args, Debug)] pub struct PerformAttOpt { /// Specify the request to be sent. - #[cfg(target_arch = "s390x")] #[arg(hide=true, short, long, value_name = "FILE", value_hint = ValueHint::FilePath,)] pub input: Option, /// Specify the request to be sent. - #[cfg(target_arch = "s390x")] #[arg(value_name = "IN", value_hint = ValueHint::FilePath, required_unless_present("input"), conflicts_with("input"))] pub input_pos: Option, /// Write the result to FILE. - #[cfg(target_arch = "s390x")] #[arg(hide=true, short, long, value_name = "FILE", value_hint = ValueHint::FilePath,)] pub output: Option, /// Write the result to FILE. #[arg(value_name = "OUT", value_hint = ValueHint::FilePath, required_unless_present("output"), conflicts_with("output"))] - #[cfg(target_arch = "s390x")] pub output_pos: Option, /// Provide up to 256 bytes of user input diff --git a/rust/pvattest/src/exchange.rs b/rust/pvattest/src/exchange.rs index a061d338..ac83bb83 100644 --- a/rust/pvattest/src/exchange.rs +++ b/rust/pvattest/src/exchange.rs @@ -1,6 +1,7 @@ // SPDX-License-Identifier: MIT // // Copyright IBM Corp. 2024 +#![allow(unused)] use anyhow::{anyhow, bail, Error, Result}; use pv::{assert_size, request::MagicValue, uv::AttestationCmd, uv::ConfigUid}; use std::{