xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [BUGFIX][PATCH 0/4] hvm_save_one: return correct data.
@ 2013-12-12  0:56 Don Slutz
  2013-12-12  0:56 ` [PATCH 1/4] tools/test: Add check-hvmctx Don Slutz
                   ` (3 more replies)
  0 siblings, 4 replies; 34+ messages in thread
From: Don Slutz @ 2013-12-12  0:56 UTC (permalink / raw)
  To: xen-devel
  Cc: Keir Fraser, Ian Jackson, Ian Campbell, Don Slutz,
	Stefano Stabellini

From: Don Slutz <dslutz@verizon.com>

Without this xenctx can return incorrect register values.  Also
xc_translate_foreign_address might do the wrong thing.

Patch #1 is unit test code.
Patch #2 is quick and dirty linux kernel module to offline some cpus
Patch #3 fixes the offline VCPU handling.
Patch #4 fixes hvm_save_one to be able to return PIC instance 1.


State:

# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2048     8     r-----      58.0
P-8-0                                        1  3080     8     r-----      27.1
# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2048     8     r-----      66.8
P-8-0                                        1  3080     1     ------      45.0


Before:

# ./check-hvmctx 1
Check HVM save record vs partial for domain 1
Error: entry 1: type 2 instance 2, length 1024 mismatch!
    CPU:    rax 0x0000000000000000     rbx 0xffffffff8006b287

(And PIC issue:)

# ./check-hvmctx 1
Check HVM save record vs partial for domain 1
Error: entry 1: type 2 instance 2, length 1024 mismatch!
    CPU:    rax 0x0000000000000000     rbx 0xffffffff8006b287
Error: xc_domain_hvm_getcontext_partial: entry 3: type 3 instance 1, length 8: Invalid argument
Error: entry 3: type 3 instance 1, length 8 mismatch!
    PIC: IRQ base 0x28, irr 0x11, imr 0xff, isr 0


After:

# ./check-hvmctx 1
Check HVM save record vs partial for domain 1


Don Slutz (4):
  tools/test: Add check-hvmctx
  Add tools/tests/offline_module
  hvm_save_one: return correct data.
  hvm_save_one: allow the 2nd instance to be fetched for PIC.

 tools/tests/check-hvmctx/.gitignore     |   1 +
 tools/tests/check-hvmctx/Makefile       |  34 ++
 tools/tests/check-hvmctx/README         |  21 +
 tools/tests/check-hvmctx/check-hvmctx.c | 661 ++++++++++++++++++++++++++++++++
 tools/tests/offline_module/.gitignore   |   8 +
 tools/tests/offline_module/Makefile     |  10 +
 tools/tests/offline_module/README       |  37 ++
 tools/tests/offline_module/offline.c    |  89 +++++
 xen/common/hvm/save.c                   |  31 +-
 9 files changed, 882 insertions(+), 10 deletions(-)
 create mode 100644 tools/tests/check-hvmctx/.gitignore
 create mode 100644 tools/tests/check-hvmctx/Makefile
 create mode 100644 tools/tests/check-hvmctx/README
 create mode 100644 tools/tests/check-hvmctx/check-hvmctx.c
 create mode 100644 tools/tests/offline_module/.gitignore
 create mode 100644 tools/tests/offline_module/Makefile
 create mode 100644 tools/tests/offline_module/README
 create mode 100644 tools/tests/offline_module/offline.c

-- 
1.8.4

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2014-01-07 15:55 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-12  0:56 [BUGFIX][PATCH 0/4] hvm_save_one: return correct data Don Slutz
2013-12-12  0:56 ` [PATCH 1/4] tools/test: Add check-hvmctx Don Slutz
2013-12-12  0:56 ` [PATCH 2/4] Add tools/tests/offline_module Don Slutz
2013-12-12 10:01   ` Ian Campbell
2013-12-12 11:09     ` David Vrabel
2013-12-12 14:24       ` Don Slutz
2013-12-12 14:32         ` Don Slutz
2013-12-12  0:56 ` [BUGFIX][PATCH 3/4] hvm_save_one: return correct data Don Slutz
2013-12-13 14:20   ` Jan Beulich
2013-12-15  0:29     ` Don Slutz
2013-12-15 16:51       ` Andrew Cooper
2013-12-15 17:19         ` Don Slutz
2013-12-15 17:22           ` Andrew Cooper
2013-12-15 17:42             ` Don Slutz
2013-12-15 18:11               ` Andrew Cooper
2013-12-15 18:41                 ` Don Slutz
2013-12-15 19:06                   ` Andrew Cooper
2013-12-15 19:23                     ` Don Slutz
2013-12-16  8:17         ` Jan Beulich
2013-12-16 17:51           ` Don Slutz
2013-12-16 18:33             ` Andrew Cooper
2013-12-22 19:40               ` Don Slutz
2013-12-22 21:13                 ` Andrew Cooper
2014-01-07 15:55                 ` Keir Fraser
2013-12-17  8:20             ` Jan Beulich
2013-12-17 10:40               ` Andrew Cooper
2013-12-20  0:32                 ` Don Slutz
2013-12-20 13:31                   ` George Dunlap
2013-12-22 19:44                     ` Don Slutz
2013-12-17 15:58               ` Don Slutz
2013-12-12  0:56 ` [BUGFIX][PATCH 4/4] hvm_save_one: allow the 2nd instance to be fetched for PIC Don Slutz
2013-12-13 14:38   ` Jan Beulich
2013-12-15  1:38     ` Don Slutz
2013-12-16  8:22       ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).