File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ pub fn query(leaf: CpuidIdent) -> CpuidValues {
8787}
8888
8989#[ cfg( not( target_arch = "x86_64" ) ) ]
90- pub fn query ( leaf : CpuidIdent ) -> CpuidValues {
90+ pub fn query ( _leaf : CpuidIdent ) -> CpuidValues {
9191 panic ! ( "host CPUID queries only work on x86-64 hosts" )
9292}
9393
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use migrate::VcpuReadWrite;
2626use thiserror:: Error ;
2727
2828use bhyve_api:: ApiVersion ;
29- use propolis_types:: { CpuidIdent , CpuidValues , CpuidVendor } ;
29+ use propolis_types:: { CpuidIdent , CpuidVendor } ;
3030
3131#[ usdt:: provider( provider = "propolis" ) ]
3232mod probes {
@@ -77,7 +77,9 @@ impl Vcpu {
7777 #[ cfg( target_arch = "x86_64" ) ]
7878 fn query_hardware_vendor ( ) -> CpuidVendor {
7979 let res = unsafe { core:: arch:: x86_64:: __cpuid ( 0 ) } ;
80- CpuidValues :: from ( res) . try_into ( ) . expect ( "CPU vendor is recognized" )
80+ propolis_types:: CpuidValues :: from ( res)
81+ . try_into ( )
82+ . expect ( "CPU vendor is recognized" )
8183 }
8284
8385 #[ cfg( not( target_arch = "x86_64" ) ) ]
You can’t perform that action at this time.
0 commit comments