Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mike Larkin
On Sat, Apr 29, 2017 at 05:24:22PM -0700, Pratik Vyas wrote: > Hello tech@, > > This is a patch that extends the readregs and writeregs vmm(4) ioctl to > read and write MSRs as well. > > It also sets the IA32_VMX_IA32E_MODE_GUEST entry control in > vcpu_reset_regs based on the value of EFER_LMA.

Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mike Larkin
On Mon, May 01, 2017 at 10:08:28PM +0200, Mark Kettenis wrote: > > Date: Mon, 1 May 2017 12:35:32 -0700 > > From: Mike Larkin > > > > Yes, the list is locked down to those listed in the diff (those are the > > only > > ones in the permissions bitmap anyway). > > > > I

Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mark Kettenis
> Date: Mon, 1 May 2017 12:35:32 -0700 > From: Mike Larkin > > Yes, the list is locked down to those listed in the diff (those are the only > ones in the permissions bitmap anyway). > > I don't think there are any bits we should not allow touching via > this mechanism.

Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mike Larkin
On Mon, May 01, 2017 at 08:30:42PM +0200, Mark Kettenis wrote: > > Date: Mon, 1 May 2017 11:16:07 -0700 > > From: Mike Larkin > > > > On Sat, Apr 29, 2017 at 05:24:22PM -0700, Pratik Vyas wrote: > > > Hello tech@, > > > > > > This is a patch that extends the readregs and

Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mark Kettenis
> Date: Mon, 1 May 2017 11:16:07 -0700 > From: Mike Larkin > > On Sat, Apr 29, 2017 at 05:24:22PM -0700, Pratik Vyas wrote: > > Hello tech@, > > > > This is a patch that extends the readregs and writeregs vmm(4) ioctl to > > read and write MSRs as well. > > > > It also

Re: [PATCH] vmm: Add MSRs to readregs / writeregs

2017-05-01 Thread Mike Larkin
On Sat, Apr 29, 2017 at 05:24:22PM -0700, Pratik Vyas wrote: > Hello tech@, > > This is a patch that extends the readregs and writeregs vmm(4) ioctl to > read and write MSRs as well. > > It also sets the IA32_VMX_IA32E_MODE_GUEST entry control in > vcpu_reset_regs based on the value of EFER_LMA.

[PATCH] vmm: Add MSRs to readregs / writeregs

2017-04-29 Thread Pratik Vyas
Hello tech@, This is a patch that extends the readregs and writeregs vmm(4) ioctl to read and write MSRs as well. It also sets the IA32_VMX_IA32E_MODE_GUEST entry control in vcpu_reset_regs based on the value of EFER_LMA. There are changes to vmmvar.h and would require a `make includes` step