Commit 04689e74 authored by Linus Torvalds's avatar Linus Torvalds

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
parents 74b60ef7 d29b9d7e
...@@ -4287,6 +4287,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, ...@@ -4287,6 +4287,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
fetch_register_operand(op); fetch_register_operand(op);
break; break;
case OpCL: case OpCL:
op->type = OP_IMM;
op->bytes = 1; op->bytes = 1;
op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff; op->val = reg_read(ctxt, VCPU_REGS_RCX) & 0xff;
break; break;
...@@ -4294,6 +4295,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, ...@@ -4294,6 +4295,7 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
rc = decode_imm(ctxt, op, 1, true); rc = decode_imm(ctxt, op, 1, true);
break; break;
case OpOne: case OpOne:
op->type = OP_IMM;
op->bytes = 1; op->bytes = 1;
op->val = 1; op->val = 1;
break; break;
...@@ -4352,21 +4354,27 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, ...@@ -4352,21 +4354,27 @@ static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op,
ctxt->memop.bytes = ctxt->op_bytes + 2; ctxt->memop.bytes = ctxt->op_bytes + 2;
goto mem_common; goto mem_common;
case OpES: case OpES:
op->type = OP_IMM;
op->val = VCPU_SREG_ES; op->val = VCPU_SREG_ES;
break; break;
case OpCS: case OpCS:
op->type = OP_IMM;
op->val = VCPU_SREG_CS; op->val = VCPU_SREG_CS;
break; break;
case OpSS: case OpSS:
op->type = OP_IMM;
op->val = VCPU_SREG_SS; op->val = VCPU_SREG_SS;
break; break;
case OpDS: case OpDS:
op->type = OP_IMM;
op->val = VCPU_SREG_DS; op->val = VCPU_SREG_DS;
break; break;
case OpFS: case OpFS:
op->type = OP_IMM;
op->val = VCPU_SREG_FS; op->val = VCPU_SREG_FS;
break; break;
case OpGS: case OpGS:
op->type = OP_IMM;
op->val = VCPU_SREG_GS; op->val = VCPU_SREG_GS;
break; break;
case OpImplicit: case OpImplicit:
......
...@@ -888,7 +888,6 @@ static void virtio_ccw_int_handler(struct ccw_device *cdev, ...@@ -888,7 +888,6 @@ static void virtio_ccw_int_handler(struct ccw_device *cdev,
struct virtio_ccw_device *vcdev = dev_get_drvdata(&cdev->dev); struct virtio_ccw_device *vcdev = dev_get_drvdata(&cdev->dev);
int i; int i;
struct virtqueue *vq; struct virtqueue *vq;
struct virtio_driver *drv;
if (!vcdev) if (!vcdev)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment