summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ring0/pagetables/BUILD
blob: c0c481ab30c4915815aaf9d2d937f94e7ffa6e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package(licenses = ["notice"])  # Apache 2.0

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "pagetables",
    srcs = [
        "pagetables.go",
        "pagetables_amd64.go",
        "pagetables_unsafe.go",
        "pagetables_x86.go",
        "pcids_x86.go",
    ],
    importpath = "gvisor.googlesource.com/gvisor/pkg/sentry/platform/ring0/pagetables",
    visibility = [
        "//pkg/sentry/platform/kvm:__subpackages__",
        "//pkg/sentry/platform/ring0:__subpackages__",
    ],
    deps = ["//pkg/sentry/usermem"],
)

go_test(
    name = "pagetables_test",
    size = "small",
    srcs = [
        "pagetables_test.go",
        "pagetables_x86_test.go",
        "pcids_x86_test.go",
    ],
    embed = [":pagetables"],
    deps = ["//pkg/sentry/usermem"],
)