Skip to content

Commit 4a468a6

Browse files
authored
Merge pull request #273 from Microsoft/jjh/scsi
Fixups to latest vmcompute as of 7/23/18
2 parents ab21da6 + cb18d00 commit 4a468a6

File tree

12 files changed

+15
-43
lines changed

12 files changed

+15
-43
lines changed

functional/wcow_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package functional
44

55
import (
66
"bytes"
7-
"fmt"
87
"os"
98
"path/filepath"
109
"strings"

internal/hcsoci/hcsdoc_wcow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func createWindowsContainerDocument(coi *createOptionsInternal) (interface{}, er
8989
if coi.Spec.Windows.Resources.Memory != nil {
9090
if coi.Spec.Windows.Resources.Memory.Limit != nil {
9191
v1.MemoryMaximumInMB = int64(*coi.Spec.Windows.Resources.Memory.Limit) / 1024 / 1024
92-
v2Container.Memory = &hcsschema.Memory{MaximumInMB: int32(v1.MemoryMaximumInMB)}
92+
v2Container.Memory = &hcsschema.Memory{SizeInMB: int32(v1.MemoryMaximumInMB)}
9393

9494
}
9595
}

internal/schema2/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ package hcsschema
1111

1212
type Memory struct {
1313

14-
MaximumInMB int32 `json:"MaximumInMB,omitempty"`
14+
SizeInMB int32 `json:"SizeInMB,omitempty"`
1515
}

internal/schema2/memory_2.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,5 @@ type Memory2 struct {
1919

2020
EnableColdHint bool `json:"EnableColdHint,omitempty"`
2121

22-
DirectFileMappingMB int64 `json:"DirectFileMappingMB,omitempty"`
23-
2422
EnableEpf bool `json:"EnableEpf,omitempty"`
2523
}

internal/schema2/network_adapter.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ type NetworkAdapter struct {
1414
EndpointId string `json:"EndpointId,omitempty"`
1515

1616
MacAddress string `json:"MacAddress,omitempty"`
17-
18-
ChannelInstanceGuid string `json:"ChannelInstanceGuid,omitempty"`
1917
}

internal/schema2/properties.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ type Properties struct {
2121

2222
Owner string `json:"Owner,omitempty"`
2323

24-
ObRoot string `json:"ObRoot,omitempty"`
25-
2624
RuntimeId string `json:"RuntimeId,omitempty"`
2725

2826
RuntimeTemplateId string `json:"RuntimeTemplateId,omitempty"`
@@ -35,29 +33,15 @@ type Properties struct {
3533

3634
Memory *MemoryInformationForVm `json:"Memory,omitempty"`
3735

38-
ContainerReportedMemory *ContainerMemoryInformation `json:"ContainerReportedMemory,omitempty"`
39-
40-
CpuGroupId string `json:"CpuGroupId,omitempty"`
41-
4236
Statistics *Statistics `json:"Statistics,omitempty"`
4337

4438
ProcessList []ProcessDetails `json:"ProcessList,omitempty"`
4539

4640
TerminateOnLastHandleClosed bool `json:"TerminateOnLastHandleClosed,omitempty"`
4741

48-
SystemGUID string `json:"SystemGUID,omitempty"`
49-
5042
HostingSystemId string `json:"HostingSystemId,omitempty"`
5143

5244
SharedMemoryRegionInfo []SharedMemoryRegionInfo `json:"SharedMemoryRegionInfo,omitempty"`
5345

5446
GuestConnectionInfo *GuestConnectionInfo `json:"GuestConnectionInfo,omitempty"`
55-
56-
Silo *SiloProperties `json:"Silo,omitempty"`
57-
58-
CosIndex int32 `json:"CosIndex,omitempty"`
59-
60-
Rmid int32 `json:"Rmid,omitempty"`
61-
62-
CacheStats *CacheQueryStatsResponse `json:"CacheStats,omitempty"`
6347
}

internal/schema2/property_query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
package hcsschema
1111

12-
// By default the basic properties will be returned. This query provides a way to request for the special properties.
12+
// By default the basic properties will be returned. This query provides a way to request specific properties.
1313
type PropertyQuery struct {
1414

1515
PropertyTypes []string `json:"PropertyTypes,omitempty"`

internal/schema2/scsi.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@ type Scsi struct {
1313

1414
// Map of attachments, where the key is the integer LUN number on the controller.
1515
Attachments map[string]Attachment `json:"Attachments,omitempty"`
16-
17-
ChannelInstanceGuid string `json:"ChannelInstanceGuid,omitempty"`
1816
}

internal/schema2/virtual_smb.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ package hcsschema
1212
type VirtualSmb struct {
1313

1414
Shares []VirtualSmbShare `json:"Shares,omitempty"`
15+
16+
DirectFileMappingInMB int64 `json:"DirectFileMappingInMB,omitempty"`
1517
}

internal/uvm/create.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,8 @@ func Create(opts *UVMOptions) (_ *UtilityVM, err error) {
262262
DevicePath: `\EFI\Microsoft\Boot\bootmgfw.efi`,
263263
DeviceType: "VmbFs",
264264
}
265-
vm.ComputeTopology.Memory.DirectFileMappingMB = 1024 // Sensible default, but could be a tuning parameter somewhere
266-
267265
vm.Devices.VirtualSmb = &hcsschema.VirtualSmb{
266+
DirectFileMappingInMB: 1024, // Sensible default, but could be a tuning parameter somewhere
268267
Shares: []hcsschema.VirtualSmbShare{
269268
{
270269
Name: "os",

0 commit comments

Comments
 (0)