Skip to content

Commit 8502c8e

Browse files
YadongQijren1
authored andcommitted
io: remove pio emulation restriction
Currently, the serial log is printed through IO(0x3f8). Secure World will print serial log by port 0x3f8. So remove the ASSERT for Secure World booting. Signed-off-by: Qi Yadong <yadong.qi@intel.com>
1 parent 922daae commit 8502c8e

File tree

1 file changed

+0
-5
lines changed
  • hypervisor/arch/x86

1 file changed

+0
-5
lines changed

hypervisor/arch/x86/io.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ int dm_emulate_pio_post(struct vcpu *vcpu)
4545
0xFFFFFFFFul >> (32 - 8 * vcpu->req.reqs.pio_request.size);
4646
uint64_t *rax;
4747

48-
ASSERT(cur_context == 0, "pio emulation only happen in normal wrold");
49-
5048
rax = &vcpu->arch_vcpu.contexts[cur_context].guest_cpu_regs.regs.rax;
5149
vcpu->req.reqs.pio_request.value =
5250
req_buf->req_queue[cur].reqs.pio_request.value;
@@ -92,9 +90,6 @@ int io_instr_handler(struct vcpu *vcpu)
9290
struct run_context *cur_context;
9391
int status = -EINVAL;
9492

95-
ASSERT(cur_context_idx == 0,
96-
"pio emulation only happen in normal wrold");
97-
9893
cur_context = &vcpu->arch_vcpu.contexts[cur_context_idx];
9994
exit_qual = vcpu->arch_vcpu.exit_qualification;
10095

0 commit comments

Comments
 (0)