-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvproxy: allow use with KVM platform
Updates #11436 PiperOrigin-RevId: 724028319
- Loading branch information
1 parent
da7cd03
commit 098a747
Showing
37 changed files
with
395 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Copyright 2025 The gVisor Authors. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package hostarch | ||
|
||
// MemoryType specifies CPU memory access behavior. | ||
type MemoryType uint8 | ||
|
||
const ( | ||
// MemoryTypeWriteBack is equivalent to Linux's default pgprot, or the | ||
// following architectural memory types: | ||
// | ||
// - x86: Write-back (WB) | ||
// | ||
// - ARM64: Normal write-back cacheable | ||
// | ||
// This memory type is appropriate for typical application memory and must | ||
// be the zero value for MemoryType. | ||
MemoryTypeWriteBack MemoryType = iota | ||
|
||
// MemoryTypeWriteCombine is equivalent to Linux's pgprot_writecombine(), | ||
// or the following architectural memory types: | ||
// | ||
// - x86: Write-combining (WC) | ||
// | ||
// - ARM64: Normal non-cacheable | ||
MemoryTypeWriteCombine | ||
|
||
// MemoryTypeUncacheable is equivalent to Linux's pgprot_noncached(), or | ||
// the following architectural memory types: | ||
// | ||
// - x86: Strong Uncacheable (UC) or Uncacheable (UC-); these differ in that | ||
// UC- may be "downgraded" to WC by a setting of WC or WP in MTRR, but | ||
// gVisor does not use MTRRs. | ||
// | ||
// - ARM64: Device-nGnRnE | ||
MemoryTypeUncacheable | ||
|
||
// NumMemoryTypes is the number of memory types. | ||
NumMemoryTypes | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.