관리-도구
편집 파일: xen.cpython-39.pyc
a -�_gH � @ s6 d dl Z d dlZd dlmZmZ G dd� dee�ZdS )� N)�Plugin�RedHatPluginc @ s@ e Zd ZdZdZdZdd� Zdd� Zdd � Zd d� Z dd � Z dS )�XenzXen virtualizationZxen)Zvirtc C sX t �dt j�r(| �d�}|d dkr(dS t �dt j�rT| �d�}|d dkrPdS d S d S )z Determine xen host type z/proc/acpi/dsdtzgrep -qi xen /proc/acpi/dsdt�statusr �hvm�/proc/xen/capabilitiesz(grep -q control_d /proc/xen/capabilities�dom0�domU� baremetal)�os�access�R_OK�exec_cmd)�self�result� r �:/usr/lib/python3.9/site-packages/sos/report/plugins/xen.py�determine_xen_host s zXen.determine_xen_hostc C s | � � dkS )Nr )r �r r r r � check_enabled# s zXen.check_enabledc C s&