Skip to content

Commit

Permalink
x86: Remove local cpu_data variable from vcpu_handle_io_access
Browse files Browse the repository at this point in the history
Only used once.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Apr 10, 2015
1 parent e8c40f6 commit 12414a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hypervisor/arch/x86/vcpu.c
Expand Up @@ -163,14 +163,13 @@ void vcpu_handle_hypercall(struct registers *guest_regs,
bool vcpu_handle_io_access(struct registers *guest_regs,
struct vcpu_io_intercept *io)
{
struct per_cpu *cpu_data = this_cpu_data();
int result = 0;

/* string and REP-prefixed instructions are not supported */
if (io->rep_or_str)
goto invalid_access;

result = x86_pci_config_handler(guest_regs, cpu_data->cell, io->port,
result = x86_pci_config_handler(guest_regs, this_cell(), io->port,
io->in, io->size);
if (result == 0)
result = i8042_access_handler(guest_regs, io->port,
Expand Down

0 comments on commit 12414a4

Please sign in to comment.