File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ static void init_guest_state(struct vcpu *vcpu)
372
372
/* Limit */
373
373
limit = 0xFFFF ;
374
374
} else if (get_vcpu_mode (vcpu ) == PAGE_PROTECTED_MODE ) {
375
- descriptor_table gdtb ;
375
+ descriptor_table gdtb = { 0 , 0 } ;
376
376
377
377
/* Base */ /* TODO: Should guest GDTB point to host GDTB ? */
378
378
/* Obtain the current global descriptor table base */
@@ -407,7 +407,7 @@ static void init_guest_state(struct vcpu *vcpu)
407
407
/* Limit */
408
408
limit = 0xFFFF ;
409
409
} else if (get_vcpu_mode (vcpu ) == PAGE_PROTECTED_MODE ) {
410
- descriptor_table idtb ;
410
+ descriptor_table idtb = { 0 , 0 } ;
411
411
412
412
/* TODO: Should guest IDTR point to host IDTR ? */
413
413
asm volatile ("sidt %0" ::"m" (idtb ));
@@ -660,8 +660,8 @@ static void init_host_state(__unused struct vcpu *vcpu)
660
660
uint64_t trbase_lo ;
661
661
uint64_t trbase_hi ;
662
662
uint64_t realtrbase ;
663
- descriptor_table gdtb ;
664
- descriptor_table idtb ;
663
+ descriptor_table gdtb = { 0 , 0 } ;
664
+ descriptor_table idtb = { 0 , 0 } ;
665
665
uint16_t tr_sel ;
666
666
667
667
pr_dbg ("*********************" );
You can’t perform that action at this time.
0 commit comments