Skip to content

Commit

Permalink
Merged PR 3680541: Update hcsshim master to github @ 0ab229b
Browse files Browse the repository at this point in the history
This PR updates our ADO branch with our github master branch. Changes included in this PR include:

- Add a new utility tool "device-util" for use in wcow device assignment scenarios
- Add ability to assign generic devices into WCOW containers
- Add internal bindings for future job container support
- Add the ability to set the `EnableCompartmentNamespace` registry key in a UVM to access changes in GNS to fix a bug with smb shares in hypervisor isolated containers
- Fix issue for kubernetes scenario where the number of CPUs requested for a container previously was based on the host instead of on the UVM when hypervisor isolated
- Improve ContainerPlat logging for LCOW layer operations to assist in debugging

PR URL: https://msazure.visualstudio.com/DefaultCollection/ContainerPlatform/_git/Microsoft.hcsshim/pullrequest/3680541
  • Loading branch information
katiewasnothere committed Oct 20, 2020
2 parents afdb752 + 0ab229b commit 18d4a68
Show file tree
Hide file tree
Showing 100 changed files with 3,087 additions and 3,985 deletions.
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ build_script:
- go build ./cmd/runhcs
- go build ./cmd/tar2ext4
- go build ./cmd/wclayer
- go build ./cmd/device-util
- go build ./internal/tools/grantvmgroupaccess
- go build ./internal/tools/uvmboot
- go build ./internal/tools/zapdir
Expand All @@ -33,6 +34,7 @@ artifacts:
- path: 'containerd-shim-runhcs-v1.exe'
- path: 'runhcs.exe'
- path: 'tar2ext4.exe'
- path: 'device-util.exe'
- path: 'wclayer.exe'
- path: 'grantvmgroupaccess.exe'
- path: 'uvmboot.exe'
Expand Down
10 changes: 5 additions & 5 deletions cmd/containerd-shim-runhcs-v1/exec_hcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"sync"
"time"

"github.com/Microsoft/hcsshim/internal/cmd"
"github.com/Microsoft/hcsshim/internal/cow"
"github.com/Microsoft/hcsshim/internal/guestrequest"
"github.com/Microsoft/hcsshim/internal/hcsoci"
"github.com/Microsoft/hcsshim/internal/log"
"github.com/Microsoft/hcsshim/internal/signals"
"github.com/Microsoft/hcsshim/internal/uvm"
Expand Down Expand Up @@ -49,7 +49,7 @@ func newHcsExec(
id, bundle string,
isWCOW bool,
spec *specs.Process,
io hcsoci.UpstreamIO) shimExec {
io cmd.UpstreamIO) shimExec {
log.G(ctx).WithFields(logrus.Fields{
"tid": tid,
"eid": id, // Init exec ID is always same as Task ID
Expand Down Expand Up @@ -118,7 +118,7 @@ type hcsExec struct {
// create time in order to be valid.
//
// This MUST be treated as read only in the lifetime of the exec.
io hcsoci.UpstreamIO
io cmd.UpstreamIO
processDone chan struct{}
processDoneOnce sync.Once

Expand All @@ -129,7 +129,7 @@ type hcsExec struct {
pid int
exitStatus uint32
exitedAt time.Time
p *hcsoci.Cmd
p *cmd.Cmd

// exited is a wait block which waits async for the process to exit.
exited chan struct{}
Expand Down Expand Up @@ -205,7 +205,7 @@ func (he *hcsExec) Start(ctx context.Context) (err error) {
}
}()
}
cmd := &hcsoci.Cmd{
cmd := &cmd.Cmd{
Host: he.c,
Stdin: he.io.Stdin(),
Stdout: he.io.Stdout(),
Expand Down
Loading

0 comments on commit 18d4a68

Please sign in to comment.