Skip to content

Improve "Emulation failed" error message

Andrew Cooper xen-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 18 repliesSuperseded

Changes in v2 from the cover letter

* Sort position of %*ph in document. Introduce missing title for %pv.
* Clip limit at 64 bytes rather than defaulting back to 0.
* Don't emit a trailing space after the last byte of the hex buffer.
* Reduce content of message for clarity.
* Only identify 16/32/64 bit operating mode. ???_guest_x86_mode() is currently insufficiently expressive to cover all operating modes.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/vsprintf: Introduce %*ph extended format specifier for hex buffersdocs/misc/printk-formats.txt xen/common/vsprintf.c+34 -02 replies
2/2x86/hvm: Improve "Emulation failed @" error messagesxen/arch/x86/hvm/emulate.c xen/arch/x86/hvm/io.c xen/arch/x86/hvm/vmx/realmode.c +1 more+30 -275 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchTim DeeganKonrad Rzeszutek WilkKevin Tian
1/2R-b Release-acked-by Release-acked-by Release-acked-by
2/2R-b R-b Release-acked-by Release-acked-by A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH for 4.5 v2 0/2] Improve "Emulation failed" error message

After wanting to improve this error for a long time, I have encountered two cases in the past 2 days where I have needed more information than it provided, so have finally gotten around to fixing it.

Patch 1 introduces a "print hex buffer" custom %p format (compatible with the Linux equivelent), while Patch 2 improves the error message.

Changes in v2:
* Sort position of %*ph in document. Introduce missing title for %pv.
* Clip limit at 64 bytes rather than defaulting back to 0.
* Don't emit a trailing space after the last byte of the hex buffer.
* Reduce content of message for clarity.
* Only identify 16/32/64 bit operating mode. ???_guest_x86_mode() is currently insufficiently expressive to cover all operating modes.

Andrew Cooper (2):
xen/vsprintf: Introduce %*ph extended format specifier for hex
buffers
x86/hvm: Improve "Emulation failed @" error messages

 docs/misc/printk-formats.txt      |    7 +++++++
 xen/arch/x86/hvm/emulate.c        |   34 +++++++++++++++++++++++++---------
 xen/arch/x86/hvm/io.c             |   11 +----------
 xen/arch/x86/hvm/vmx/realmode.c   |    9 +--------
 xen/common/vsprintf.c             |   27 +++++++++++++++++++++++++++
 xen/include/asm-x86/hvm/emulate.h |    3 +++
 6 files changed, 64 insertions(+), 27 deletions(-)
Signature · 1 line
1.7.10.4