Commit aae0d6e
committed
kvm: decode data written to and read from I/O ports
With the "-e kvm=vcpu+" option, strace now decodes data written to and read
from I/O ports.
* src/kvm.c (kvm_run_structure_decode_io): Decode data written to
or read from I/O ports as a byte array.
(kvm_run_structure_decode_main): Add struct vcpu_info as a new
parameter and pass it down to kvm_run_structure_decode_io().
(kvm_run_structure_decode): Pass a struct vcpu_info object to
kvm_run_structure_decode_main.
* tests/ioctl_kvm_run_common.c (run_kvm): Allocate buffer for run_before
dynamically and copy entire mmap'ed region to the buffer.
* tests/ioctl_kvm_run_auxstr_vcpu_more.c (print_kvm_run_more): Print
data written to or read from I/O ports.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>1 parent 96d7f83 commit aae0d6e
3 files changed
Lines changed: 26 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
470 | 482 | | |
471 | 483 | | |
472 | 484 | | |
| |||
489 | 501 | | |
490 | 502 | | |
491 | 503 | | |
| 504 | + | |
492 | 505 | | |
493 | 506 | | |
494 | 507 | | |
| |||
527 | 540 | | |
528 | 541 | | |
529 | 542 | | |
530 | | - | |
| 543 | + | |
531 | 544 | | |
532 | 545 | | |
533 | 546 | | |
| |||
552 | 565 | | |
553 | 566 | | |
554 | 567 | | |
555 | | - | |
| 568 | + | |
556 | 569 | | |
557 | 570 | | |
558 | 571 | | |
| |||
567 | 580 | | |
568 | 581 | | |
569 | 582 | | |
570 | | - | |
| 583 | + | |
571 | 584 | | |
572 | 585 | | |
573 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
229 | 230 | | |
230 | | - | |
| 231 | + | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
0 commit comments