Skip to contentSkip to conversation

performance of qemu

Qemu-devel Johan Rydberg 2 participants 5 messages Jun 3, 2003 – Jun 4, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

has anyone of you guys (Fabrice et al) done any performance measurements of QEMU? I'm particular intrested in the performance of functions that set the condition codes.

If I'm not mistaken, the condition codes is simulated using two values and an operator specifying what type of insn that generated the condition codes.

When is the full eflags register generated? In the epilogue of a translated block, or when ever an insn/callback reads the eflag register?

Is any optmization done in the case that two insns that kill the condition codes? (example: two insns that kills the condition codes, but no insn between them that uses it).

brgds,
Johan.

#1 lore raw
Quoted 5 lines · Johan Rydberg

Hi,

has anyone of you guys (Fabrice et al) done any performance measurements of QEMU? I'm particular intrested in the performance of functions that set the condition codes.

I plan to publish soon some benchmarks against bochs and native execution.

Quoted 2 lines

If I'm not mistaken, the condition codes is simulated using two values and an operator specifying what type of insn that generated the condition codes.

OK.

Quoted 2 lines

When is the full eflags register generated? In the epilogue of a translated block, or when ever an insn/callback reads the eflag register?

Only when an instruction really needs the full eflags register (such as pushf).

Quoted 1 line

Is any optmization done in the case that two insns that kill the condition codes? (example: two insns that kills the condition codes, but no insn between them that uses it).

Yes.

Fabrice.

#2 lore raw

On Wed, 04 Jun 2003 10:20:24 +0200
Fabrice Bellard <[email protected]> wrote:

: I plan to publish soon some benchmarks against bochs and native execution. :
: > If I'm not mistaken, the condition codes is simulated using two values and : > an operator specifying what type of insn that generated the condition codes. :
: OK.

Good.

: > When is the full eflags register generated? In the epilogue of a translated : > block, or when ever an insn/callback reads the eflag register? :
: Only when an instruction really needs the full eflags register (such as : pushf).

And at the end of the translated block? Or does the CC_SRC, CC_DST and CC_OP live between blocks?

#3 lore raw
Quoted 6 lines · Johan Rydberg

: > When is the full eflags register generated? In the epilogue of a translated : > block, or when ever an insn/callback reads the eflag register?
: : Only when an instruction really needs the full eflags register (such as : pushf).

And at the end of the translated block? Or does the CC_SRC, CC_DST and CC_OP live between blocks?

CC_SRC, CC_DST and CC_OP live between blocks (I think computing the eflags would be too expensive).

Fabrice.

#4 lore raw

On Wed, 04 Jun 2003 18:01:25 +0200
Fabrice Bellard <[email protected]> wrote:

: CC_SRC, CC_DST and CC_OP live between blocks (I think computing the : eflags would be too expensive).

It most probably would. How do callbacks, say for example in the signal handing code of QEMU, retreive the EFLAGS value from the CC_* variables? Do it call some function that calculates the value, or does the main loop calculate the full EFLAGS value whenever it breaks out of a sequence of translated blocks to handle signals?

: Fabrice.

Johan