From: mlarkin Date: Tue, 2 May 2017 02:58:24 +0000 (+0000) Subject: Matching vmd(8) part of previous diff (first part of vmctl send/receive). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f39fb87651ecbea8079a0950f0dda033f8c4c50d;p=openbsd Matching vmd(8) part of previous diff (first part of vmctl send/receive). ok kettenis --- diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c index 5aeed370764..2c831b0fb5e 100644 --- a/usr.sbin/vmd/vm.c +++ b/usr.sbin/vmd/vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm.c,v 1.13 2017/04/25 06:44:35 reyk Exp $ */ +/* $OpenBSD: vm.c,v 1.14 2017/05/02 02:58:24 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -133,6 +133,12 @@ static const struct vcpu_reg_state vcpu_init_flat32 = { .vrs_idtr = { 0x0, 0xFFFF, 0x0, 0x0}, .vrs_sregs[VCPU_REGS_LDTR] = { 0x0, 0xFFFF, 0x0082, 0x0}, .vrs_sregs[VCPU_REGS_TR] = { 0x0, 0xFFFF, 0x008B, 0x0}, + .vrs_msrs[VCPU_REGS_EFER] = 0ULL, + .vrs_msrs[VCPU_REGS_STAR] = 0ULL, + .vrs_msrs[VCPU_REGS_LSTAR] = 0ULL, + .vrs_msrs[VCPU_REGS_CSTAR] = 0ULL, + .vrs_msrs[VCPU_REGS_SFMASK] = 0ULL, + .vrs_msrs[VCPU_REGS_KGSBASE] = 0ULL }; /* @@ -161,6 +167,12 @@ static const struct vcpu_reg_state vcpu_init_flat16 = { .vrs_idtr = { 0x0, 0xFFFF, 0x0, 0x0}, .vrs_sregs[VCPU_REGS_LDTR] = { 0x0, 0xFFFF, 0x0082, 0x0}, .vrs_sregs[VCPU_REGS_TR] = { 0x0, 0xFFFF, 0x008B, 0x0}, + .vrs_msrs[VCPU_REGS_EFER] = 0ULL, + .vrs_msrs[VCPU_REGS_STAR] = 0ULL, + .vrs_msrs[VCPU_REGS_LSTAR] = 0ULL, + .vrs_msrs[VCPU_REGS_CSTAR] = 0ULL, + .vrs_msrs[VCPU_REGS_SFMASK] = 0ULL, + .vrs_msrs[VCPU_REGS_KGSBASE] = 0ULL }; /*