1<?xml version="1.0"?>
2<!-- Copyright (C) 2022 Intel Corporation. -->
3<!-- SPDX-License-Identifier: BSD-3-Clause -->
4<xs:schema xml:id="root"
5           xmlns:xs="http://www.w3.org/2001/XMLSchema"
6           xmlns:acrn="https://projectacrn.org">
7
8  <xs:assert test="every $vm in /acrn-config/vm satisfies
9                   not($vm//mmio_resources/TPM2 = 'y') or not($vm//mmio_resources/p2sb = 'y')">
10    <xs:annotation acrn:severity="error" acrn:report-on="$vm//mmio_resources">
11      <xs:documentation>VM "{$vm/name}" is assigned both a TPM2 (Trusted Platform Module) and P2SB (Primary-to-Sideband Bridge), which is not a supported configuration. Remove one of these choices.</xs:documentation>
12    </xs:annotation>
13  </xs:assert>
14
15</xs:schema>
16