lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200918084911.GI31590@8bytes.org>
Date:   Fri, 18 Sep 2020 10:49:11 +0200
From:   Joerg Roedel <joro@...tes.org>
To:     Wesley Sheng <wesley.sheng@....com>
Cc:     iommu@...ts.linux-foundation.org, linux-kernel@...r.kernel.org,
        wesleyshenggit@...a.com
Subject: Re: [PATCH] iommu/amd: Add prefetch iommu pages command build
 function

On Sat, Sep 05, 2020 at 03:14:20PM +0800, Wesley Sheng wrote:
> +static void build_pf_iommu_pages(struct iommu_cmd *cmd, u64 address,
> +					u16 devid, int pfcnt, bool size,
> +					bool inv)
> +{
> +	memset(cmd, 0, sizeof(*cmd));
> +
> +	address &= PAGE_MASK;
> +
> +	cmd->data[0]  = devid;
> +	cmd->data[0] |= (pfcnt & 0xff) << 24;
> +	cmd->data[2]  = lower_32_bits(address);
> +	cmd->data[3]  = upper_32_bits(address;
> +	if (size)
> +		cmd->data[2] |= CMD_INV_IOMMU_PAGES_SIZE_MASK;
> +	if (inv)
> +		cmd->data[2] |= CMD_PF_IOMMU_PAGES_INV_MASK;
> +	CMD_SET_TYPE(cmd, CMD_PF_IOMMU_PAGES);
> +}

This also needs to add a user of this function.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ