qemu: remove qemuGetDomainDefaultHugepath

It is no longer used.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Ján Tomko 2019-04-04 13:58:02 +02:00
parent 07c6738460
commit c264cb1b1c
2 changed files with 0 additions and 27 deletions

View File

@ -1899,30 +1899,6 @@ qemuGetDomainHugepagePath(const virDomainDef *def,
}
/**
* qemuGetDomainDefaultHugepath:
* @def: domain definition
* @hugetlbfs: array of configured hugepages
* @nhugetlbfs: number of item in the array
*
* Callers must ensure that @hugetlbfs contains at least one entry.
*
* Returns 0 on success, -1 otherwise.
* */
char *
qemuGetDomainDefaultHugepath(const virDomainDef *def,
virHugeTLBFSPtr hugetlbfs,
size_t nhugetlbfs)
{
virHugeTLBFSPtr p;
if (!(p = virFileGetDefaultHugepage(hugetlbfs, nhugetlbfs)))
p = &hugetlbfs[0];
return qemuGetDomainHugepagePath(def, p);
}
/**
* qemuGetDomainHupageMemPath: Construct HP enabled memory backend path
*

View File

@ -374,9 +374,6 @@ int qemuTranslateSnapshotDiskSourcePool(virDomainSnapshotDiskDefPtr def);
char * qemuGetBaseHugepagePath(virHugeTLBFSPtr hugepage);
char * qemuGetDomainHugepagePath(const virDomainDef *def,
virHugeTLBFSPtr hugepage);
char * qemuGetDomainDefaultHugepath(const virDomainDef *def,
virHugeTLBFSPtr hugetlbfs,
size_t nhugetlbfs);
int qemuGetDomainHupageMemPath(const virDomainDef *def,
virQEMUDriverConfigPtr cfg,