diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-11-12 18:29:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-11-12 18:29:28 -0500 |
commit | 04689e749b7ec156291446028a0ce2e685bf3855 (patch) | |
tree | 60218b91a2cc65906e691f9a9ff5bd8d5fa02101 /arch | |
parent | 74b60ef779f47629b22200f6568a7cda1cd12c83 (diff) | |
parent | d29b9d7ed76c0b961603ca692b8a562556a20212 (diff) |
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini:
"Two fixes --- one of them not exactly a one liner, but things are
calming down on the KVM front at last"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: x86: Fix uninitialized op->type for some immediate values
KVM: s390: virtio_ccw: remove unused variable
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/emulate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 5edf088ca51e..9f8a2faf5040 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -4287,6 +4287,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, | |||
4287 | fetch_register_operand(op); | 4287 | fetch_register_operand(op); |
4288 | break; | 4288 | break; |
4289 | case OpCL: | 4289 | case OpCL: |
4290 | op->type = OP_IMM; | ||
4290 | op->bytes = 1; | 4291 | op->bytes = 1; |
4291 | op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff; | 4292 | op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff; |
4292 | break; | 4293 | break; |
@@ -4294,6 +4295,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, | |||
4294 | rc = decode_imm(ctxt, op, 1, true); | 4295 | rc = decode_imm(ctxt, op, 1, true); |
4295 | break; | 4296 | break; |
4296 | case OpOne: | 4297 | case OpOne: |
4298 | op->type = OP_IMM; | ||
4297 | op->bytes = 1; | 4299 | op->bytes = 1; |
4298 | op->val = 1; | 4300 | op->val = 1; |
4299 | break; | 4301 | break; |
@@ -4352,21 +4354,27 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, | |||
4352 | ctxt->memop.bytes = ctxt->op_bytes + 2; | 4354 | ctxt->memop.bytes = ctxt->op_bytes + 2; |
4353 | goto mem_common; | 4355 | goto mem_common; |
4354 | case OpES: | 4356 | case OpES: |
4357 | op->type = OP_IMM; | ||
4355 | op->val = VCPU_SREG_ES; | 4358 | op->val = VCPU_SREG_ES; |
4356 | break; | 4359 | break; |
4357 | case OpCS: | 4360 | case OpCS: |
4361 | op->type = OP_IMM; | ||
4358 | op->val = VCPU_SREG_CS; | 4362 | op->val = VCPU_SREG_CS; |
4359 | break; | 4363 | break; |
4360 | case OpSS: | 4364 | case OpSS: |
4365 | op->type = OP_IMM; | ||
4361 | op->val = VCPU_SREG_SS; | 4366 | op->val = VCPU_SREG_SS; |
4362 | break; | 4367 | break; |
4363 | case OpDS: | 4368 | case OpDS: |
4369 | op->type = OP_IMM; | ||
4364 | op->val = VCPU_SREG_DS; | 4370 | op->val = VCPU_SREG_DS; |
4365 | break; | 4371 | break; |
4366 | case OpFS: | 4372 | case OpFS: |
4373 | op->type = OP_IMM; | ||
4367 | op->val = VCPU_SREG_FS; | 4374 | op->val = VCPU_SREG_FS; |
4368 | break; | 4375 | break; |
4369 | case OpGS: | 4376 | case OpGS: |
4377 | op->type = OP_IMM; | ||
4370 | op->val = VCPU_SREG_GS; | 4378 | op->val = VCPU_SREG_GS; |
4371 | break; | 4379 | break; |
4372 | case OpImplicit: | 4380 | case OpImplicit: |