(&self)
| 2845 | } |
| 2846 | |
| 2847 | pub fn backed_by_shared_memory(&self) -> bool { |
| 2848 | if self.memory.shared || self.memory.hugepages { |
| 2849 | return true; |
| 2850 | } |
| 2851 | |
| 2852 | if self.memory.size == 0 { |
| 2853 | for zone in self.memory.zones.as_ref().unwrap() { |
| 2854 | if !zone.shared && !zone.hugepages { |
| 2855 | return false; |
| 2856 | } |
| 2857 | } |
| 2858 | true |
| 2859 | } else { |
| 2860 | false |
| 2861 | } |
| 2862 | } |
| 2863 | |
| 2864 | // Also enables virtio-iommu if the config needs it |
| 2865 | // Returns the list of unique identifiers provided through the |
no outgoing calls
no test coverage detected