Skip to contentSkip to conversation

KVM: Use write_emulated and not write_std, which is not implemented

PATCH Applied Amit Shah 2 participants 2 messages Nov 18, 2007 1 message not in the archive KVM

lore
Share & tools
lore

Amit Shah

author
#0 lore raw
Quoted 1 line

From 554315592b05eabf0355ac63145c28e11358af1f Mon Sep 17 00:00:00 2001

From: Amit Shah <amit.shah-atKUWr5tajBWk0Htik3J/[email protected]>
Date: Sun, 18 Nov 2007 00:03:27 +0530
Subject: [PATCH] KVM: Use write_emulated and not write_std, which is not implemented

... and calling write_emulated should work just as well in place of write_std.

---
 drivers/kvm/x86_emulate.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/kvm/x86_emulate.c +0 -0
index 2765559..c2c9c8a 100644
@@ -1076,9 +1076,10 @@ static inline int emulate_grp45(struct x86_emulate_ctxt 

*ctxt,
} register_address_increment(c->regs[VCPU_REGS_RSP],
-c->dst.bytes);
- rc = ops->write_std(register_address(ctxt->ss_base,
- c->regs[VCPU_REGS_RSP]), &c->dst.val,
- c->dst.bytes, ctxt->vcpu);
+ rc = ops->write_emulated(register_address(ctxt->ss_base,
+ c->regs[VCPU_REGS_RSP]),
+ &c->dst.val,
+ c->dst.bytes, ctxt->vcpu);
if (rc != 0)
return rc;
c->dst.type = OP_NONE;

Signature · 7 lines
1.4.4.2


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Applied
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Amit Shah

From 554315592b05eabf0355ac63145c28e11358af1f Mon Sep 17 00:00:00 2001
From: Amit Shah <amit.shah-atKUWr5tajBWk0Htik3J/[email protected]>
Date: Sun, 18 Nov 2007 00:03:27 +0530
Subject: [PATCH] KVM: Use write_emulated and not write_std, which is not implemented

... and calling write_emulated should work just as well in place of write_std.

Applied, thanks.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/