From abcd765f2d77147b1ff271ebb11ceb11f996c21e Mon Sep 17 00:00:00 2001 From: Qi Yadong Date: Tue, 27 Mar 2018 17:29:54 +0800 Subject: [PATCH] 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 --- arch/x86/io.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/io.c b/arch/x86/io.c index 62fa2673b..a9853240c 100644 --- a/arch/x86/io.c +++ b/arch/x86/io.c @@ -45,8 +45,6 @@ int dm_emulate_pio_post(struct vcpu *vcpu) 0xFFFFFFFFul >> (32 - 8 * vcpu->req.reqs.pio_request.size); uint64_t *rax; - ASSERT(cur_context == 0, "pio emulation only happen in normal wrold"); - rax = &vcpu->arch_vcpu.contexts[cur_context].guest_cpu_regs.regs.rax; vcpu->req.reqs.pio_request.value = req_buf->req_queue[cur].reqs.pio_request.value; @@ -92,9 +90,6 @@ int io_instr_handler(struct vcpu *vcpu) struct run_context *cur_context; int status = -EINVAL; - ASSERT(cur_context_idx == 0, - "pio emulation only happen in normal wrold"); - cur_context = &vcpu->arch_vcpu.contexts[cur_context_idx]; exit_qual = vcpu->arch_vcpu.exit_qualification;