aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_common.py
blob: 1949dad5c53f2f7bb5391afd472407a662ec822f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os
from nose.plugins.skip import SkipTest
if os.name == "nt":
    raise SkipTest("Skipped on Windows.")

import libmproxy.console.common as common
from libmproxy import utils, flow, encoding
import tutils


def test_format_flow():
    f = tutils.tflow(resp=True)
    assert common.format_flow(f, True)
    assert common.format_flow(f, True, hostheader=True)
    assert common.format_flow(f, True, extended=True)
A. * * Copyright (C) Allen Kay <allen.m.kay@intel.com> */ #ifndef __XEN_HVM_IOMMU_H__ #define __XEN_HVM_IOMMU_H__ #include <xen/iommu.h> struct g2m_ioport { struct list_head list; unsigned int gport; unsigned int mport; unsigned int np; }; struct mapped_rmrr { struct list_head list; u64 base; u64 end; }; struct hvm_iommu { u64 pgd_maddr; /* io page directory machine address */ spinlock_t mapping_lock; /* io page table lock */ int agaw; /* adjusted guest address width, 0 is level 2 30-bit */ struct list_head g2m_ioport_list; /* guest to machine ioport mapping */ u64 iommu_bitmap; /* bitmap of iommu(s) that the domain uses */ struct list_head mapped_rmrrs; /* amd iommu support */ int domain_id; int paging_mode; struct page_info *root_table; /* iommu_ops */ const struct iommu_ops *platform_ops; }; #endif /* __XEN_HVM_IOMMU_H__ */