search for: cpu_env

Displaying 6 results from an estimated 6 matches for "cpu_env".

2009 Jun 05
1
[PATCHv3 07/13] qemu: minimal MSI/MSI-X implementation for PC
...15 +#define MSI_DATA_LEVEL_SHIFT 14 +#define MSI_ADDR_DEST_MODE_SHIFT 2 +#define MSI_ADDR_DEST_ID_SHIFT 12 +#define MSI_ADDR_DEST_ID_MASK 0x00ffff0 + +#define MSI_ADDR_BASE 0xfee00000 +#define MSI_ADDR_SIZE 0x100000 + typedef struct APICState { CPUState *cpu_env; uint32_t apicbase; @@ -712,11 +727,31 @@ static uint32_t apic_mem_readl(void *opaque, target_phys_addr_t addr) return val; } +static void apic_send_msi(target_phys_addr_t addr, uint32 data) +{ + uint8_t dest = (addr & MSI_ADDR_DEST_ID_MASK) >> MSI_ADDR_DEST_ID_SHIFT; +...
2009 Jun 05
1
[PATCHv3 07/13] qemu: minimal MSI/MSI-X implementation for PC
...15 +#define MSI_DATA_LEVEL_SHIFT 14 +#define MSI_ADDR_DEST_MODE_SHIFT 2 +#define MSI_ADDR_DEST_ID_SHIFT 12 +#define MSI_ADDR_DEST_ID_MASK 0x00ffff0 + +#define MSI_ADDR_BASE 0xfee00000 +#define MSI_ADDR_SIZE 0x100000 + typedef struct APICState { CPUState *cpu_env; uint32_t apicbase; @@ -712,11 +727,31 @@ static uint32_t apic_mem_readl(void *opaque, target_phys_addr_t addr) return val; } +static void apic_send_msi(target_phys_addr_t addr, uint32 data) +{ + uint8_t dest = (addr & MSI_ADDR_DEST_ID_MASK) >> MSI_ADDR_DEST_ID_SHIFT; +...
2012 Apr 05
15
[PATCH 0/0] MSI/MSIX injection for Xen HVM guests
Implement a simple Xen APIC module and use it to deliver MSI/MSIX for Xen HVM guests.
2009 Jun 21
0
[PATCHv2 RFC] qemu/msix: remove msix_supported safety flag
...ased on top of MSIXv6. hw/apic.c | 1 - hw/msix.c | 7 ------- hw/msix.h | 2 -- 3 files changed, 0 insertions(+), 10 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 3bcab46..2ac87d1 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -965,7 +965,6 @@ int apic_init(CPUState *env) s->cpu_env = env; apic_reset(s); - msix_supported = 1; /* XXX: mapping more APICs at the same memory location */ if (apic_io_memory == 0) { diff --git a/hw/msix.c b/hw/msix.c index 773581f..6eb51c3 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -59,9 +59,6 @@ #define DEBUG(fmt, ...) do { } w...
2009 Jun 21
0
[PATCHv2 RFC] qemu/msix: remove msix_supported safety flag
...ased on top of MSIXv6. hw/apic.c | 1 - hw/msix.c | 7 ------- hw/msix.h | 2 -- 3 files changed, 0 insertions(+), 10 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 3bcab46..2ac87d1 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -965,7 +965,6 @@ int apic_init(CPUState *env) s->cpu_env = env; apic_reset(s); - msix_supported = 1; /* XXX: mapping more APICs at the same memory location */ if (apic_io_memory == 0) { diff --git a/hw/msix.c b/hw/msix.c index 773581f..6eb51c3 100644 --- a/hw/msix.c +++ b/hw/msix.c @@ -59,9 +59,6 @@ #define DEBUG(fmt, ...) do { } w...
2012 Apr 12
2
[PATCH v2 0/2] MSI/MSIX injection for Xen HVM guests
Hi all, this patch series by Wei Liu implements a simple Xen APIC module and use it to deliver MSI/MSIX for Xen HVM guests. The second version of this series includes the "or later" copyright clause for xen_apic.c and a fix to the return value of xen_apic_mem_read (thanks Peter for finding it out). Stefano Stabellini (2): Xen: basic HVM MSI injection support. Xen: Add