Commit 441edc8
committed
refactor: do not redefine x86 constant in test_vsock_bof
This test is all about testing what happens when a vsock driver places
virtio buffers close to / around the MMIO gap on x86_64 systems. Since
this test thus doesn't really serve a purpose on aarch64, we can just
cfg(target_arch = "x86_64") it, and reuse the constants from
arch::x86_64 instead of redefining them again.
fwiw, I have no idea what "bof" means. I'm also confused by this test
passing on ARM in the first place, given that some of the comments
indicate to me that it should fail if the buffers overlap the mmio gap
(which doesn't exist on arm, so nothing should fail?).
Signed-off-by: Patrick Roy <[email protected]>1 parent 338cb74 commit 441edc8
File tree
2 files changed
+25
-18
lines changed- src/vmm/src
- arch/x86_64
- devices/virtio/vsock
2 files changed
+25
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | 226 | | |
228 | | - | |
229 | | - | |
230 | 227 | | |
231 | 228 | | |
232 | 229 | | |
| |||
427 | 424 | | |
428 | 425 | | |
429 | 426 | | |
| 427 | + | |
430 | 428 | | |
431 | | - | |
| 429 | + | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
| |||
472 | 470 | | |
473 | 471 | | |
474 | 472 | | |
| 473 | + | |
| 474 | + | |
475 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
476 | 480 | | |
477 | 481 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
484 | 485 | | |
485 | 486 | | |
486 | | - | |
487 | | - | |
| 487 | + | |
| 488 | + | |
488 | 489 | | |
489 | 490 | | |
490 | 491 | | |
| |||
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
| 510 | + | |
515 | 511 | | |
516 | 512 | | |
517 | 513 | | |
518 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
522 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
523 | 529 | | |
524 | 530 | | |
525 | 531 | | |
| |||
0 commit comments