Merge "VmTerminalApp: Handle a11y for text" into main
diff --git a/android/virtmgr/src/crosvm.rs b/android/virtmgr/src/crosvm.rs
index 2fad4b9..25271f8 100644
--- a/android/virtmgr/src/crosvm.rs
+++ b/android/virtmgr/src/crosvm.rs
@@ -1062,8 +1062,6 @@
command.arg(add_preserved_fd(&mut preserved_fds, kernel));
}
- command.arg("--no-pmu");
-
let control_sock = create_crosvm_control_listener(crosvm_control_socket_path)
.context("failed to create control listener")?;
command.arg("--socket").arg(add_preserved_fd(&mut preserved_fds, control_sock));
diff --git a/guest/pvmfw/Android.bp b/guest/pvmfw/Android.bp
index bcd3e42..4586cca 100644
--- a/guest/pvmfw/Android.bp
+++ b/guest/pvmfw/Android.bp
@@ -18,7 +18,6 @@
"libciborium_io_nostd",
"libcstr",
"libdiced_open_dice_nostd",
- "libfdtpci",
"liblibfdt_nostd",
"liblog_rust_nostd",
"libpvmfw_avb_nostd",
diff --git a/guest/pvmfw/src/fdt.rs b/guest/pvmfw/src/fdt.rs
index 953fdae..0d934a6 100644
--- a/guest/pvmfw/src/fdt.rs
+++ b/guest/pvmfw/src/fdt.rs
@@ -30,8 +30,6 @@
use core::mem::size_of;
use core::ops::Range;
use cstr::cstr;
-use fdtpci::PciMemoryFlags;
-use fdtpci::PciRangeType;
use libfdt::AddressRange;
use libfdt::CellIterator;
use libfdt::Fdt;
@@ -45,6 +43,8 @@
use log::warn;
use static_assertions::const_assert;
use tinyvec::ArrayVec;
+use vmbase::fdt::pci::PciMemoryFlags;
+use vmbase::fdt::pci::PciRangeType;
use vmbase::fdt::SwiotlbInfo;
use vmbase::hyp;
use vmbase::layout::{crosvm::MEM_START, MAX_VIRT_ADDR};
diff --git a/guest/pvmfw/src/main.rs b/guest/pvmfw/src/main.rs
index 10f8549..1e88c4b 100644
--- a/guest/pvmfw/src/main.rs
+++ b/guest/pvmfw/src/main.rs
@@ -46,13 +46,13 @@
use core::ops::Range;
use cstr::cstr;
use diced_open_dice::{bcc_handover_parse, DiceArtifacts, Hidden};
-use fdtpci::{PciError, PciInfo};
use libfdt::{Fdt, FdtNode};
use log::{debug, error, info, trace, warn};
use pvmfw_avb::verify_payload;
use pvmfw_avb::Capability;
use pvmfw_avb::DebugLevel;
use pvmfw_embedded_key::PUBLIC_KEY;
+use vmbase::fdt::pci::{PciError, PciInfo};
use vmbase::heap;
use vmbase::memory::flush;
use vmbase::memory::MEMORY;
diff --git a/guest/rialto/Android.bp b/guest/rialto/Android.bp
index eeb5b2d..7bcfd54 100644
--- a/guest/rialto/Android.bp
+++ b/guest/rialto/Android.bp
@@ -14,7 +14,6 @@
"libciborium_nostd",
"libcstr",
"libdiced_open_dice_nostd",
- "libfdtpci",
"liblibfdt_nostd",
"liblog_rust_nostd",
"libservice_vm_comm_nostd",
diff --git a/guest/rialto/src/error.rs b/guest/rialto/src/error.rs
index 033159b..ba5f4b0 100644
--- a/guest/rialto/src/error.rs
+++ b/guest/rialto/src/error.rs
@@ -17,10 +17,11 @@
use aarch64_paging::MapError;
use core::{fmt, result};
use diced_open_dice::DiceError;
-use fdtpci::PciError;
use libfdt::FdtError;
use service_vm_comm::RequestProcessingError;
-use vmbase::{hyp::Error as HypervisorError, memory::MemoryTrackerError, virtio::pci};
+use vmbase::{
+ fdt::pci::PciError, hyp::Error as HypervisorError, memory::MemoryTrackerError, virtio::pci,
+};
pub type Result<T> = result::Result<T, Error>;
diff --git a/guest/rialto/src/main.rs b/guest/rialto/src/main.rs
index 9265775..f09cbd2 100644
--- a/guest/rialto/src/main.rs
+++ b/guest/rialto/src/main.rs
@@ -32,7 +32,6 @@
use core::num::NonZeroUsize;
use core::slice;
use diced_open_dice::{bcc_handover_parse, DiceArtifacts};
-use fdtpci::PciInfo;
use libfdt::FdtError;
use log::{debug, error, info};
use service_vm_comm::{ServiceVmRequest, VmType};
@@ -45,6 +44,7 @@
};
use vmbase::{
configure_heap,
+ fdt::pci::PciInfo,
fdt::SwiotlbInfo,
generate_image_header,
hyp::{get_mem_sharer, get_mmio_guard},
diff --git a/guest/vmbase_example/Android.bp b/guest/vmbase_example/Android.bp
index 49a6d69..09bd77c 100644
--- a/guest/vmbase_example/Android.bp
+++ b/guest/vmbase_example/Android.bp
@@ -11,7 +11,6 @@
"libaarch64_paging",
"libcstr",
"libdiced_open_dice_nostd",
- "libfdtpci",
"liblibfdt_nostd",
"liblog_rust_nostd",
"libvirtio_drivers",
diff --git a/guest/vmbase_example/src/main.rs b/guest/vmbase_example/src/main.rs
index 7a3f427..1466d1e 100644
--- a/guest/vmbase_example/src/main.rs
+++ b/guest/vmbase_example/src/main.rs
@@ -31,11 +31,12 @@
use core::mem;
use core::ptr::addr_of_mut;
use cstr::cstr;
-use fdtpci::PciInfo;
use libfdt::Fdt;
use log::{debug, error, info, trace, warn, LevelFilter};
use vmbase::{
- bionic, configure_heap, generate_image_header,
+ bionic, configure_heap,
+ fdt::pci::PciInfo,
+ generate_image_header,
layout::{crosvm::FDT_MAX_SIZE, rodata_range, scratch_range, text_range},
linker, logger, main,
memory::{PageTable, SIZE_64KB},
diff --git a/guest/vmbase_example/src/pci.rs b/guest/vmbase_example/src/pci.rs
index b838539..563f24a 100644
--- a/guest/vmbase_example/src/pci.rs
+++ b/guest/vmbase_example/src/pci.rs
@@ -17,7 +17,6 @@
use aarch64_paging::paging::MemoryRegion;
use alloc::alloc::{alloc_zeroed, dealloc, handle_alloc_error, Layout};
use core::{mem::size_of, ptr::NonNull};
-use fdtpci::PciInfo;
use log::{debug, info};
use virtio_drivers::{
device::console::VirtIOConsole,
@@ -27,7 +26,10 @@
},
BufferDirection, Error, Hal, PhysAddr, PAGE_SIZE,
};
-use vmbase::virtio::pci::{self, PciTransportIterator};
+use vmbase::{
+ fdt::pci::PciInfo,
+ virtio::pci::{self, PciTransportIterator},
+};
/// The standard sector size of a VirtIO block device, in bytes.
const SECTOR_SIZE_BYTES: usize = 512;
diff --git a/libs/fdtpci/Android.bp b/libs/fdtpci/Android.bp
deleted file mode 100644
index d7a5da3..0000000
--- a/libs/fdtpci/Android.bp
+++ /dev/null
@@ -1,19 +0,0 @@
-package {
- default_applicable_licenses: ["Android-Apache-2.0"],
-}
-
-rust_library_rlib {
- name: "libfdtpci",
- edition: "2021",
- no_stdlibs: true,
- host_supported: false,
- crate_name: "fdtpci",
- defaults: ["avf_build_flags_rust"],
- srcs: ["src/lib.rs"],
- rustlibs: [
- "liblibfdt_nostd",
- "liblog_rust_nostd",
- "libvirtio_drivers",
- ],
- apex_available: ["com.android.virt"],
-}
diff --git a/libs/fdtpci/TEST_MAPPING b/libs/fdtpci/TEST_MAPPING
deleted file mode 100644
index 192a7c6..0000000
--- a/libs/fdtpci/TEST_MAPPING
+++ /dev/null
@@ -1,9 +0,0 @@
-// When adding or removing tests here, don't forget to amend _all_modules list in
-// wireless/android/busytown/ath_config/configs/prod/avf/tests.gcl
-{
- "avf-presubmit": [
- {
- "name": "vmbase_example.integration_test"
- }
- ]
-}
diff --git a/libs/libvmbase/Android.bp b/libs/libvmbase/Android.bp
index e634c18..206c4cb 100644
--- a/libs/libvmbase/Android.bp
+++ b/libs/libvmbase/Android.bp
@@ -80,7 +80,6 @@
"libaarch64_paging",
"libbuddy_system_allocator",
"libcstr",
- "libfdtpci",
"liblibfdt_nostd",
"liblog_rust_nostd",
"libonce_cell_nostd",
diff --git a/libs/libvmbase/src/arch.rs b/libs/libvmbase/src/arch.rs
index d8bb8b2..992ab27 100644
--- a/libs/libvmbase/src/arch.rs
+++ b/libs/libvmbase/src/arch.rs
@@ -91,3 +91,22 @@
}
}};
}
+
+/// Write with well-defined compiled behavior.
+///
+/// See https://github.com/rust-lang/rust/issues/131894
+///
+/// # Safety
+///
+/// `dst` must be valid for writes.
+pub unsafe fn write_volatile_u8(dst: *mut u8, src: u8) {
+ // SAFETY: strb only modifies *dst, which must be valid for writes.
+ unsafe {
+ core::arch::asm!(
+ "strb {value:w}, [{ptr}]",
+ value = in(reg) src,
+ ptr = in(reg) dst,
+ options(preserves_flags),
+ );
+ }
+}
diff --git a/libs/libvmbase/src/fdt.rs b/libs/libvmbase/src/fdt.rs
index 4101f7e..ff0eaf0 100644
--- a/libs/libvmbase/src/fdt.rs
+++ b/libs/libvmbase/src/fdt.rs
@@ -14,6 +14,8 @@
//! High-level FDT functions.
+pub mod pci;
+
use core::ops::Range;
use cstr::cstr;
use libfdt::{self, Fdt, FdtError};
diff --git a/libs/fdtpci/src/lib.rs b/libs/libvmbase/src/fdt/pci.rs
similarity index 99%
rename from libs/fdtpci/src/lib.rs
rename to libs/libvmbase/src/fdt/pci.rs
index bdd904f..ebaa671 100644
--- a/libs/fdtpci/src/lib.rs
+++ b/libs/libvmbase/src/fdt/pci.rs
@@ -14,8 +14,6 @@
//! Library for working with (VirtIO) PCI devices discovered from a device tree.
-#![no_std]
-
use core::{
ffi::CStr,
fmt::{self, Display, Formatter},
diff --git a/libs/libvmbase/src/uart.rs b/libs/libvmbase/src/uart.rs
index e35555d..427499b 100644
--- a/libs/libvmbase/src/uart.rs
+++ b/libs/libvmbase/src/uart.rs
@@ -15,6 +15,7 @@
//! Minimal driver for an 8250 UART. This only implements enough to work with the emulated 8250
//! provided by crosvm, and won't work with real hardware.
+use crate::arch::write_volatile_u8;
use core::fmt::{self, Write};
/// Minimal driver for an 8250 UART. This only implements enough to work with the emulated 8250
@@ -39,13 +40,7 @@
pub fn write_byte(&self, byte: u8) {
// SAFETY: We know that the base address points to the control registers of a UART device
// which is appropriately mapped.
- unsafe {
- core::arch::asm!(
- "strb {value:w}, [{ptr}]",
- value = in(reg) byte,
- ptr = in(reg) self.base_address,
- );
- }
+ unsafe { write_volatile_u8(self.base_address, byte) }
}
}
diff --git a/libs/libvmbase/src/virtio/pci.rs b/libs/libvmbase/src/virtio/pci.rs
index 1d05c18..72e648b 100644
--- a/libs/libvmbase/src/virtio/pci.rs
+++ b/libs/libvmbase/src/virtio/pci.rs
@@ -14,11 +14,13 @@
//! Functions to scan the PCI bus for VirtIO devices.
-use crate::memory::{MemoryTracker, MemoryTrackerError};
+use crate::{
+ fdt::pci::PciInfo,
+ memory::{MemoryTracker, MemoryTrackerError},
+};
use alloc::boxed::Box;
use core::fmt;
use core::marker::PhantomData;
-use fdtpci::PciInfo;
use log::debug;
use once_cell::race::OnceBox;
use virtio_drivers::{
diff --git a/tests/hostside/Android.bp b/tests/hostside/Android.bp
index 1f86d6b..d0838a6 100644
--- a/tests/hostside/Android.bp
+++ b/tests/hostside/Android.bp
@@ -26,7 +26,6 @@
":microdroid_general_sepolicy.conf",
":test.com.android.virt.pem",
":test2.com.android.virt.pem",
- "java/**/goldens/dt_dump_*",
],
data_native_bins: [
"sepolicy-analyze",
@@ -39,7 +38,6 @@
"lz4",
"sign_virt_apex",
"simg2img",
- "dtc",
],
// java_test_host doesn't have data_native_libs but jni_libs can be used to put
// native modules under ./lib directory.
@@ -50,7 +48,6 @@
"libcrypto_utils",
"libcrypto",
"libext4_utils",
- "libfdt",
"liblog",
"liblp",
"libsparse",
diff --git a/tests/hostside/java/com/android/microdroid/test/MicrodroidHostTests.java b/tests/hostside/java/com/android/microdroid/test/MicrodroidHostTests.java
index 83adc91..ffcf338 100644
--- a/tests/hostside/java/com/android/microdroid/test/MicrodroidHostTests.java
+++ b/tests/hostside/java/com/android/microdroid/test/MicrodroidHostTests.java
@@ -1352,136 +1352,6 @@
}
}
- @Test
- @Parameters(method = "gkiVersions")
- @TestCaseName("{method}_gki_{0}")
- public void microdroidDeviceTreeCompat(String gki) throws Exception {
- assumeArm64Supported();
- final String configPath = "assets/vm_config.json";
- // Preconditions
- assumeKernelSupported(gki);
- int mem_size = 256;
- assertTrue("Memory size too small", mem_size >= minMemorySize());
-
- // Start the VM with the dump DT option.
- mMicrodroidDevice =
- MicrodroidBuilder.fromDevicePath(getPathForPackage(PACKAGE_NAME), configPath)
- .debugLevel("full")
- .memoryMib(mem_size)
- .cpuTopology("one_cpu")
- .protectedVm(false)
- .gki(sGkiVersions.get(gki))
- .name("test_device_tree")
- .dumpDt("/data/local/tmp/dump_dt.dtb")
- .build(getAndroidDevice());
- assertThat(mMicrodroidDevice.waitForBootComplete(BOOT_COMPLETE_TIMEOUT)).isTrue();
-
- File goldenDt = findTestFile("dt_dump_golden.dts");
- testGoldenDeviceTree(goldenDt.getAbsolutePath());
- }
-
- @Test
- @Parameters(method = "gkiVersions")
- @TestCaseName("{method}_gki_{0}")
- public void microdroidProtectedDeviceTreeCompat(String gki) throws Exception {
- assumeArm64Supported();
- final String configPath = "assets/vm_config.json";
- // Preconditions
- assumeKernelSupported(gki);
- assumeVmTypeSupported(true);
- int mem_size = 256;
- assertTrue("Memory size too small", mem_size >= minMemorySize());
-
- // Start the VM with the dump DT option.
- mMicrodroidDevice =
- MicrodroidBuilder.fromDevicePath(getPathForPackage(PACKAGE_NAME), configPath)
- .debugLevel("full")
- .memoryMib(mem_size)
- .cpuTopology("one_cpu")
- .protectedVm(true)
- .gki(sGkiVersions.get(gki))
- .name("test_device_tree")
- .dumpDt("/data/local/tmp/dump_dt.dtb")
- .build(getAndroidDevice());
- assertThat(mMicrodroidDevice.waitForBootComplete(BOOT_COMPLETE_TIMEOUT)).isTrue();
-
- File goldenDt = findTestFile("dt_dump_protected_golden.dts");
- testGoldenDeviceTree(goldenDt.getAbsolutePath());
- }
-
- private void testGoldenDeviceTree(String goldenDt) throws Exception {
- // Pull the device tree to host.
- TestDevice device = getAndroidDevice();
- boolean disableRoot = !device.isAdbRoot();
- device.enableAdbRoot();
- assumeTrue("adb root is not enabled", device.isAdbRoot());
-
- // Pull DT from device
- File dtb_from_device = device.pullFile("/data/local/tmp/dump_dt.dtb");
- if (disableRoot) {
- device.disableAdbRoot();
- }
-
- File dtc = findTestFile("dtc");
-
- // Create temp file for Device tree conversion
- File dt_dump_dts = File.createTempFile("dt_dump", "dts");
- dt_dump_dts.delete();
- String dt_dump_dts_path = dt_dump_dts.getAbsolutePath();
- // Convert DT to text format.
- CommandResult dtb_to_dts =
- RunUtil.getDefault()
- .runTimedCmd(
- 3000,
- dtc.getAbsolutePath(),
- "-I",
- "dtb",
- "-O",
- "dts",
- "-qqq",
- "-f",
- "-s",
- "-o",
- dt_dump_dts_path,
- dtb_from_device.getAbsolutePath());
- assertTrue(
- "result convert stderr: " + dtb_to_dts.getStderr(),
- dtb_to_dts.getStderr().trim().isEmpty());
- assertTrue(
- "result convert stdout: " + dtb_to_dts.getStdout(),
- dtb_to_dts.getStdout().trim().isEmpty());
-
- // Diff device's DT with the golden DT.
- CommandResult result_compare =
- RunUtil.getDefault()
- .runTimedCmd(
- 3000,
- "diff",
- "-u",
- "-w",
- "-I",
- "kaslr-seed",
- "-I",
- "instance-id",
- "-I",
- "rng-seed",
- "-I",
- "linux,initrd-end",
- "-I",
- "secretkeeper_public_key",
- "-I",
- "interrupt-map",
- dt_dump_dts_path,
- goldenDt);
-
- assertTrue(
- "result compare stderr: " + result_compare.getStderr(),
- result_compare.getStderr().trim().isEmpty());
- assertTrue(
- "result compare stdout: " + result_compare.getStdout(),
- result_compare.getStdout().trim().isEmpty());
- }
-
@Before
public void setUp() throws Exception {
assumeDeviceIsCapable(getDevice());
@@ -1564,11 +1434,4 @@
"Microdroid is not supported for specific VM protection type",
getAndroidDevice().supportsMicrodroid(protectedVm));
}
-
- private void assumeArm64Supported() throws Exception {
- CommandRunner android = new CommandRunner(getDevice());
- String abi = android.run("getprop", "ro.product.cpu.abi");
- assertThat(abi).isNotEmpty();
- assumeTrue("Skipping test as the architecture is not supported", abi.startsWith("arm64"));
- }
}
diff --git a/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_golden.dts b/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_golden.dts
deleted file mode 100644
index 795c50f..0000000
--- a/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_golden.dts
+++ /dev/null
@@ -1,145 +0,0 @@
-/dts-v1/;
-
-/ {
- #address-cells = <0x02>;
- #size-cells = <0x02>;
- compatible = "linux,dummy-virt";
- interrupt-parent = <0x01>;
- name = "reference";
-
- U6_16550A@2e8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x02 0x01>;
- reg = <0x00 0x2e8 0x00 0x08>;
- };
-
- U6_16550A@2f8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x02 0x01>;
- reg = <0x00 0x2f8 0x00 0x08>;
- };
-
- U6_16550A@3e8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x00 0x01>;
- reg = <0x00 0x3e8 0x00 0x08>;
- };
-
- U6_16550A@3f8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x00 0x01>;
- reg = <0x00 0x3f8 0x00 0x08>;
- };
-
- __symbols__ {
- intc = "/intc";
- };
-
- avf {
- secretkeeper_public_key = [];
-
- untrusted {
- defer-rollback-protection;
- instance-id = <0xf145d4f8 0x15f03952 0x5af249aa 0xfead94d8 0xb9f05746 0xd9163f48 0x7251b67b 0xe117409e 0x2b14dfa5 0xcaa8caf7 0x14176d2d 0xf88cc94b 0xeed4a59d 0x9a2d8fe5 0x5ac590f1 0xbb6c96f5>;
- };
- };
-
- chosen {
- bootargs = "panic=-1 crashkernel=17M";
- kaslr-seed = <>;
- linux,initrd-end = <0x81200360>;
- linux,initrd-start = <0x81000000>;
- linux,pci-probe-only = <0x01>;
- rng-seed = <>;
- stdout-path = "/U6_16550A@3f8";
- };
-
- config {
- kernel-address = <0x80000000>;
- kernel-size = <0xc91000>;
- };
-
- cpufreq {
- compatible = "virtual,kvm-cpufreq";
- };
-
- cpus {
- #address-cells = <0x01>;
- #size-cells = <0x00>;
-
- cpu@0 {
- compatible = "arm,armv8";
- device_type = "cpu";
- phandle = <0x100>;
- reg = <0x00>;
- };
- };
-
- intc {
- #address-cells = <0x02>;
- #interrupt-cells = <0x03>;
- #size-cells = <0x02>;
- compatible = "arm,gic-v3";
- interrupt-controller;
- phandle = <0x01>;
- reg = <0x00 0x3fff0000 0x00 0x10000 0x00 0x3ffd0000 0x00 0x20000>;
- };
-
- memory {
- device_type = "memory";
- reg = <0x00 0x80000000 0x00 0x10000000>;
- };
-
- pci {
- #address-cells = <0x03>;
- #interrupt-cells = <0x01>;
- #size-cells = <0x02>;
- bus-range = <0x00 0x00>;
- compatible = "pci-host-cam-generic";
- device_type = "pci";
- dma-coherent;
- interrupt-map = <0x800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x04 0x04 0x1000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x05 0x04 0x1800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x06 0x04 0x2000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x07 0x04 0x2800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x08 0x04 0x3000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x09 0x04 0x3800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0a 0x04 0x4000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0b 0x04 0x4800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0c 0x04>;
- interrupt-map-mask = <0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07>;
- ranges = <0x3000000 0x00 0x2000000 0x00 0x2000000 0x00 0x2000000 0x43000000 0x00 0x90800000 0x00 0x90800000 0xff 0x6f800000>;
- reg = <0x00 0x10000 0x00 0x1000000>;
- };
-
- pclk@3M {
- #clock-cells = <0x00>;
- clock-frequency = <0x2fefd8>;
- compatible = "fixed-clock";
- phandle = <0x18>;
- };
-
- psci {
- compatible = "arm,psci-1.0\0arm,psci-0.2";
- method = "hvc";
- };
-
- rtc@2000 {
- arm,primecell-periphid = <0x41030>;
- clock-names = "apb_pclk";
- clocks = <0x18>;
- compatible = "arm,primecell";
- interrupts = <0x00 0x01 0x04>;
- reg = <0x00 0x2000 0x00 0x1000>;
- };
-
- timer {
- always-on;
- compatible = "arm,armv8-timer";
- interrupts = <0x01 0x0d 0x108 0x01 0x0e 0x108 0x01 0x0b 0x108 0x01 0x0a 0x108>;
- };
-
- vmwdt@3000 {
- clock-frequency = <0x02>;
- compatible = "qemu,vcpu-stall-detector";
- interrupts = <0x01 0x0f 0x101>;
- reg = <0x00 0x3000 0x00 0x1000>;
- timeout-sec = <0x0a>;
- };
-};
diff --git a/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_protected_golden.dts b/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_protected_golden.dts
deleted file mode 100644
index 5761c15..0000000
--- a/tests/hostside/java/com/android/microdroid/test/goldens/dt_dump_protected_golden.dts
+++ /dev/null
@@ -1,159 +0,0 @@
-/dts-v1/;
-
-/ {
- #address-cells = <0x02>;
- #size-cells = <0x02>;
- compatible = "linux,dummy-virt";
- interrupt-parent = <0x01>;
- name = "reference";
-
- U6_16550A@2e8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x02 0x01>;
- reg = <0x00 0x2e8 0x00 0x08>;
- };
-
- U6_16550A@2f8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x02 0x01>;
- reg = <0x00 0x2f8 0x00 0x08>;
- };
-
- U6_16550A@3e8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x00 0x01>;
- reg = <0x00 0x3e8 0x00 0x08>;
- };
-
- U6_16550A@3f8 {
- clock-frequency = <0x1c2000>;
- compatible = "ns16550a";
- interrupts = <0x00 0x00 0x01>;
- reg = <0x00 0x3f8 0x00 0x08>;
- };
-
- __symbols__ {
- intc = "/intc";
- };
-
- avf {
- secretkeeper_public_key = [];
-
- untrusted {
- defer-rollback-protection;
- instance-id = <0x4d482941 0x27228238 0x11d7b28 0xaeed3076 0x88eb3fcb 0x2b9de301 0x57ff8977 0xaf8c24b6 0x55466af4 0x23beed37 0x2f976083 0xe630eb28 0x1edbc491 0xa8300897 0xeb3e9f76 0x21ea9284>;
- };
- };
-
- chosen {
- bootargs = "panic=-1 crashkernel=31M";
- kaslr-seed = <>;
- linux,initrd-end = <0x81202104>;
- linux,initrd-start = <0x81000000>;
- linux,pci-probe-only = <0x01>;
- rng-seed = <>;
- stdout-path = "/U6_16550A@3f8";
- };
-
- config {
- kernel-address = <0x80000000>;
- kernel-size = <0xc91000>;
- };
-
- cpufreq {
- compatible = "virtual,kvm-cpufreq";
- };
-
- cpus {
- #address-cells = <0x01>;
- #size-cells = <0x00>;
-
- cpu@0 {
- compatible = "arm,armv8";
- device_type = "cpu";
- phandle = <0x100>;
- reg = <0x00>;
- };
- };
-
- intc {
- #address-cells = <0x02>;
- #interrupt-cells = <0x03>;
- #size-cells = <0x02>;
- compatible = "arm,gic-v3";
- interrupt-controller;
- phandle = <0x01>;
- reg = <0x00 0x3fff0000 0x00 0x10000 0x00 0x3ffd0000 0x00 0x20000>;
- };
-
- memory {
- device_type = "memory";
- reg = <0x00 0x80000000 0x00 0x10e00000>;
- };
-
- pci {
- #address-cells = <0x03>;
- #interrupt-cells = <0x01>;
- #size-cells = <0x02>;
- bus-range = <0x00 0x00>;
- compatible = "pci-host-cam-generic";
- device_type = "pci";
- dma-coherent;
- interrupt-map = <0x800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x04 0x04 0x1000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x05 0x04 0x1800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x06 0x04 0x2000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x07 0x04 0x2800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x08 0x04 0x3000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x09 0x04 0x3800 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0a 0x04 0x4000 0x00 0x00 0x01 0x01 0x00 0x00 0x00 0x0b 0x04>;
- interrupt-map-mask = <0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07 0xf800 0x00 0x00 0x07>;
- memory-region = <0x02>;
- ranges = <0x3000000 0x00 0x2000000 0x00 0x2000000 0x00 0x2000000 0x43000000 0x00 0x91600000 0x00 0x91600000 0xff 0x6ea00000>;
- reg = <0x00 0x10000 0x00 0x1000000>;
- };
-
- pclk@3M {
- #clock-cells = <0x00>;
- clock-frequency = <0x2fefd8>;
- compatible = "fixed-clock";
- phandle = <0x18>;
- };
-
- psci {
- compatible = "arm,psci-1.0\0arm,psci-0.2";
- method = "hvc";
- };
-
- reserved-memory {
- #address-cells = <0x02>;
- #size-cells = <0x02>;
- ranges;
-
- restricted_dma_reserved {
- alignment = <0x00 0x1000>;
- compatible = "restricted-dma-pool";
- phandle = <0x02>;
- size = <0x00 0xe00000>;
- };
- };
-
- rtc@2000 {
- arm,primecell-periphid = <0x41030>;
- clock-names = "apb_pclk";
- clocks = <0x18>;
- compatible = "arm,primecell";
- interrupts = <0x00 0x01 0x04>;
- reg = <0x00 0x2000 0x00 0x1000>;
- };
-
- timer {
- always-on;
- compatible = "arm,armv8-timer";
- interrupts = <0x01 0x0d 0x108 0x01 0x0e 0x108 0x01 0x0b 0x108 0x01 0x0a 0x108>;
- };
-
- vmwdt@3000 {
- clock-frequency = <0x02>;
- compatible = "qemu,vcpu-stall-detector";
- interrupts = <0x01 0x0f 0x101>;
- reg = <0x00 0x3000 0x00 0x1000>;
- timeout-sec = <0x0a>;
- };
-};