Commit 23ef21f
committed
KVM: selftests: Fold x86's descriptor tables helpers into vcpu_init_sregs()
Now that the per-VM, on-demand allocation logic in kvm_setup_gdt() and
vcpu_init_descriptor_tables() is gone, fold them into vcpu_init_sregs().
Note, both kvm_setup_gdt() and vcpu_init_descriptor_tables() configured the
GDT, which is why it looks like kvm_setup_gdt() disappears.
Opportunistically delete the pointless zeroing of the IDT limit (it was
being unconditionally overwritten by vcpu_init_descriptor_tables()).
Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Link: https://lore.kernel.org/r/20240314232637.2538648-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 1051e29 commit 23ef21f
1 file changed
Lines changed: 5 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | 520 | | |
527 | 521 | | |
528 | 522 | | |
| |||
538 | 532 | | |
539 | 533 | | |
540 | 534 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | 535 | | |
556 | 536 | | |
557 | 537 | | |
| |||
561 | 541 | | |
562 | 542 | | |
563 | 543 | | |
564 | | - | |
565 | | - | |
566 | | - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
567 | 548 | | |
568 | 549 | | |
569 | 550 | | |
| |||
573 | 554 | | |
574 | 555 | | |
575 | 556 | | |
| 557 | + | |
576 | 558 | | |
577 | 559 | | |
578 | 560 | | |
579 | 561 | | |
580 | | - | |
581 | | - | |
582 | 562 | | |
583 | 563 | | |
584 | 564 | | |
| |||
0 commit comments