feat(xo-server,xo-web/host/advanced): add IOMMU state (#5294)

Fixes #4936
This commit is contained in:
Mathieu 2020-10-01 10:40:10 +02:00 committed by GitHub
parent 58dc3244be
commit 24a69bcade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 0 deletions

View File

@ -7,6 +7,8 @@
> Users must be able to say: “Nice enhancement, I'm eager to test it”
- [Host/Advanced] Add the field `IOMMU` if it is defined (PR [#5294](https://github.com/vatesfr/xen-orchestra/pull/5294))
### Bug fixes
> Users must be able to say: “I had this issue, happy to know it's fixed”
@ -27,3 +29,6 @@
> - major: if the change breaks compatibility
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-server minor
- xo-web minor

View File

@ -190,6 +190,12 @@ const TRANSFORMS = {
address: obj.address,
bios_strings: obj.bios_strings,
build: softwareVersion.build_number,
chipset_info: {
iommu:
obj.chipset_info.iommu !== undefined
? obj.chipset_info.iommu === 'true'
: undefined,
},
enabled: Boolean(obj.enabled),
cpus: {
cores: cpuInfo && +cpuInfo.cpu_count,

View File

@ -882,6 +882,7 @@ const messages = {
hostStatus: 'Status',
hostBuildNumber: 'Build number',
hostIscsiIqn: 'iSCSI IQN',
hostIommuTooltip: 'PCI passthrough capable',
hostNoIscsiSr: 'Not connected to an iSCSI SR',
hostMultipathingSrs: 'Click to see concerned SRs',
hostMultipathingPaths:
@ -906,6 +907,7 @@ const messages = {
hostLicenseSocket: 'Socket',
hostLicenseExpiry: 'Expiry',
hostRemoteSyslog: 'Remote syslog',
hostIommu: 'IOMMU',
supplementalPacks: 'Installed supplemental packs',
supplementalPackNew: 'Install new supplemental pack',
supplementalPackPoolNew: 'Install supplemental pack on every host',

View File

@ -267,6 +267,20 @@ export default class extends Component {
: _('hostStatusDisabled')}
</td>
</tr>
{host.chipset_info.iommu !== undefined && (
<tr>
<th>
<Tooltip content={_('hostIommuTooltip')}>
{_('hostIommu')}
</Tooltip>
</th>
<td>
{host.chipset_info.iommu
? _('stateEnabled')
: _('stateDisabled')}
</td>
</tr>
)}
<tr>
<th>{_('hostPowerOnMode')}</th>
<td>