MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / destination_field

Function destination_field

devices/src/ioapic.rs:67–74  ·  view source on GitHub ↗
(entry: RedirectionTableEntry)

Source from the content-addressed store, hash-verified

65 ((entry >> 16) & 0x1u64) as u8
66}
67fn destination_field(entry: RedirectionTableEntry) -> u8 {
68 // When the destination mode is physical, the destination field should only
69 // be defined through bits 56-59, as defined in the IOAPIC specification.
70 // But from the APIC specification, the APIC ID is always defined on 8 bits
71 // no matter which destination mode is selected. That's why we always
72 // retrieve the destination field based on bits 56-63.
73 ((entry >> 56) & 0xffu64) as u8
74}
75fn set_delivery_status(entry: &mut RedirectionTableEntry, val: u8) {
76 // Clear bit 12
77 *entry &= 0xffff_ffff_ffff_efff;

Callers 1

update_entryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected