qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU


From: Jan Kiszka
Subject: Re: [Qemu-devel] [V11 1/4] hw/i386: Introduce AMD IOMMU
Date: Sun, 22 May 2016 19:47:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2016-05-22 12:21, David Kiarie wrote:
> +static void amdvi_generate_msi_interrupt(AMDVIState *s)
> +{
> +    uint64_t addr;
> +    uint32_t data;
> +
> +    if ((pci_get_word(s->dev.config + s->dev.msi_cap + PCI_MSI_FLAGS) &
> +       PCI_MSI_FLAGS_ENABLE)) {
> +        addr = pci_get_quad(s->dev.config + s->dev.msi_cap +
> +                            PCI_MSI_ADDRESS_LO);
> +        data = pci_get_word(s->dev.config + s->dev.msi_cap +
> +                            PCI_MSI_DATA_64);

There is msi_enabled and msi_get_message - will make this a bit more
compact.

Jan


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]